BeneSphinx has asked for the wisdom of the Perl Monks concerning the following question:
The wrapper takes care of things at a "high level" and the jobs do the "low level" dirty work. So my idea was to write wrapper logging to a "main.log" and then each job gets its own log, like "job1.log", "job2.log", etc. The jobs are run in a "for" loop, by the way. But both main.log and jobX.log will have the same range of severity levels, from DEBUG to ERROR, so I can't use those to distinguish. I have two ideas:Launch program Run Job 1 Run Job 2 Run Job 3 ... Exit program
Downside is that I don't think appenders were meant to be dynamically swapped in this way, at least not frequently.[set appenders: Screen, Main] ... for my $job (@jobs){ [set appenders: Screen, (current job)] } [set appenders: Screen, Main]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: log4perl usage question
by zwon (Abbot) on Mar 31, 2012 at 06:58 UTC | |
|
Re: log4perl usage question
by wwe (Friar) on Mar 31, 2012 at 09:47 UTC |