in reply to Log4Perl issue
package Bar::Twix; use Log::Log4perl qw(:easy); sub eat { DEBUG("Twix mjam"); } package Bar::Mars; use Log::Log4perl qw(:easy); sub eat { INFO("Mars mjam"); } package main; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init( { level => $DEBUG, file => ">>test.log", category => "Bar::Twix", layout => '%F{1}-%L-%M: %m%n' }, { level => $DEBUG, file => "STDOUT", category => "Bar::Mars", layout => '%m%n' }, ); Bar::Twix::eat(); Bar::Mars::eat();
|
|---|