in reply to 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' };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can I from within a module access variables from the calling program?
by Anonymous Monk on Oct 29, 2012 at 09:49 UTC | |
by HJO (Acolyte) on Oct 29, 2012 at 10:31 UTC | |
by Anonymous Monk on Oct 29, 2012 at 10:47 UTC | |
by HJO (Acolyte) on Oct 29, 2012 at 11:48 UTC | |
by Anonymous Monk on Oct 29, 2012 at 12:34 UTC | |
|
In Section
Seekers of Perl Wisdom