Log::Log4perl::Layout::PatternLayout - Pattern Layout
use Log::Log4perl::Layout::PatternLayout; my $layout = Log::Log4perl::Layout::PatternLayout->("%d (%F:%L)> %m");
Creates a pattern layout according to http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html. Please check this page for documentation on the various %x format tags.
%x
Log::Log4perl::Layout::PatternLayout is used in connection with the Log::Log4perl::Appender object, which knows how to access its methods to render a message according to the given printf-like format.
Log::Log4perl::Layout::PatternLayout
Log::Log4perl::Appender
printf
Mike Schilli, <m@perlmeister.com>
To install Log::Log4perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Log4perl
CPAN shell
perl -MCPAN -e shell install Log::Log4perl
For more information on module installation, please visit the detailed CPAN module installation guide.