Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: log4Perl dynamic filename

by Anonymous Monk
on May 16, 2013 at 13:23 UTC ( #1033826=note: print w/ replies, xml ) Need Help??

in reply to log4Perl dynamic filename

This is FAQ

Re: Can I from within a module access variables from the calling program?

Q: What if I need dynamic values in a static Log4perl configuration file?

A: log4perl.appender.Logfile.filename = sub { logfile(); };

A: log4perl.appender.Logfile.filename = sub { MyHackySack->logfile(); };

A: log4perl.appender.Logfile.filename = sub { $Hallo::Ween::GLOBULON || 'punkinguts.log' };

Comment on Re: log4Perl dynamic filename

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-11-29 06:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (748 votes), past polls