in reply to using subs in Log4perl config file
init() should be called in the main program -- this is a L4p "best practice" to avoid you're loading several L4p-enabled modules, each of which clobbers the L4p configuration by calling init().
Secondly, subroutines in the L4p config file are called in the main name space. If you want to call a sub in a different package, just fully qualify it, like SomePackage::getCLI_Logfile().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using subs in Log4perl config file
by dwhitney (Beadle) on Oct 22, 2004 at 21:51 UTC | |
by saintmike (Vicar) on Oct 22, 2004 at 22:29 UTC | |
by dwhitney (Beadle) on Nov 02, 2004 at 18:34 UTC |