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' };
In reply to Re: log4Perl dynamic filename
by Anonymous Monk
in thread log4Perl dynamic filename
by fritz1968
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |