(forwarded with permission)
Hi Mike.
I've been enjoying Log::Log4perl (using 1.13). Thank-you. Until I
decided to write a pair of appenders.
One of them is a fancy file appender and it works nicely.
The other logs an event to Netcool (specifying warp_message=0) and it
works fine. It allows you to call log like:
$logger->log($level, $msg, $key)
so that you can specify a Netcool alert key.
Then comes the problem: I made a configuration file including both
appenders. Now I lose. The Netcool appender continues to work nicely.
However, the file appender mashes all the args together if I specify the
key. Which is the expected behaviour for it, but then I can't use the
key feature with netcool. I could make it work by setting
warp_message=0 on the file appender, but to do that I have to set the
layout to NoopLayout, so I can't get nicely formatted log entries there.
It seems as if there is no way to use both types of appender (with
warp_message=0 and without) in the same config file. Or am I missing
something?
Thomas Erskine
Consultant | Technology
2000 Barrington St | Suite 300 | Floor 04
Halifax, NS B3J3K1
Phone: +1 902 442-4709
Tho...@mo...
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
|