Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Accessing Log::Log4perl Configuration Values

by whereiskurt (Friar)
on Mar 18, 2007 at 19:07 UTC ( [id://605380]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        varname = value
    
  2. or download this
        ${varname}
    
  3. or download this
        layout_class   = Log::Log4perl::Layout::PatternLayout
        layout_pattern = %d %F{1} %L> %m %n
    ...
        log4perl.appender.Screen  = Log::Log4perl::Appender::Screen
        log4perl.appender.Screen.layout = ${layout_class}
        log4perl.appender.Screen.layout.ConversionPattern = ${layout_patte
    +rn}
    
  4. or download this
        use Log::Log4perl qw(get_logger);
        
    ...
        
        my $logger = get_logger("Bar::Twix");
        $logger->error("Blah");
    
  5. or download this
        2002/09/19 23:48:15 t1 25> Blah
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-19 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found