Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Accessing Log::Log4perl Configuration Values

by valdez (Monsignor)
on Mar 18, 2007 at 15:42 UTC ( [id://605366]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Log::Log4perl::Config::Standalone;
    
    ...
    1;
    
    __END__
    
  2. or download this
    # filename: l4p.conf
    global_var = /var/log/some/file.log
    ...
    log4perl.appender.LOGFILE.mode = append
    log4perl.appender.LOGFILE.layout = PatternLayout
    log4perl.appender.LOGFILE.layout.ConversionPattern = %d{ISO8601} [%P] 
    +%C %p %m%n
    
  3. or download this
    use Log::Log4perl::Config::Standalone;
    
    my $c = Log::Log4perl::Config::Standalone->new('./l4p.conf');
    print $c->value('log4perl.appender.LOGFILE.filename'), "\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found