|
|
| more useful options | |
| PerlMonks |
Re: Can I from within a module access variables from the calling program?by Anonymous Monk |
| on Oct 29, 2012 at 09:17 UTC ( #1001321=note: print w/ replies, xml ) | Need Help?? |
|
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' };
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||