# Foo.pm package Foo; use Log::Log4perl qw(:easy); sub foo { DEBUG "Fooing the database"; }
# l4p.conf # Where should logging be enabled? log4perl.category.Foo = DEBUG, Logfile log4perl.category.Bar = DEBUG, Logfile # Appenders log4perl.appender.Logfile = Log::Log4perl::Appender::File log4perl.appender.Logfile.filename = test.log log4perl.appender.Logfile.layout = Log::Log4perl::Layout::Simple +Layout
In reply to Re: Inversion of control: logging and configuration
by saintmike
in thread Inversion of control: logging and configuration
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |