Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: log4perl question

by leriksen (Curate)
on Sep 18, 2003 at 00:42 UTC ( [id://292285]=note: print w/replies, xml ) Need Help??


in reply to Re: log4perl question
in thread log4perl question

And that is why recently I started to not even have a root logger - to avoid the double logging that you mention.
I did this as an experiment with some code I am writing now - and it seems to work fabulously well
# set your logger here # Note - no root logger - this is not always what you want # but at this early stage of developement, is good enough #log4perl.logger=INFO, A1 log4perl.logger.WSR_Generator._create_wsr_document=INFO, A1 #log4perl.logger.WSR_Utils.form_order=DEBUG, A1 #log4perl.logger.WSR_New_Worker_Return.create_wsr_records=DEBUG, A1 #configure SCREEN logger log4perl.appender.A1=Log::Dispatch::Screen log4perl.appender.A1.min_level=debug log4perl.appender.A1.stderr=1 log4perl.appender.A1.layout=Log::Log4perl::Layout::PatternLayout log4perl.appender.A1.layout.ConversionPattern=%d %-5.5p - %M - %m%n

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found