Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to pick an appender selectively in Log::Log4perl

by Arunbear (Prior)
on Feb 11, 2016 at 17:12 UTC ( #1154993=note: print w/replies, xml ) Need Help??


in reply to How to pick an appender selectively in Log::Log4perl

Create a separate category that only writes to Logfile
my %loggerConfig = ( "log4perl.category.default_logger" => "INFO, Stdout, SYSLOG, Logfile +", "log4perl.category.file.only" => "INFO, Logfile", );
Then to use it:
my $log = Log::Log4perl->get_logger("file.only"); $log->info('whatever');

Replies are listed 'Best First'.
Re^2: How to pick an appender selectively in Log::Log4perl
by hellosarathy (Novice) on Feb 11, 2016 at 17:43 UTC
    Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1154993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-12-02 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (16 votes). Check out past polls.

    Notices?