Hi,
I need some functionality I don't know how to implement:
Right now my big codebase is full of logger.info("a message"); stuff.
I have a new requirement to format log files in a specific way, for
instance:
20080408-18:57:24|ProcessA.java|23|hostname|this is where the message goes
As you can see, fields are separated by |, and I have been able to do
all required by setting some stuff as MDC and by using existing values
from PatternLayout. The only remaining thing is that in case the %m
contains a pipe, it must be escaped to \|.
I wish I could do that in a centralized way (maybe even subclassing
some log4j class) instead of changing all the calls to logger.info()
to LogUtil.log() and escaping the pipe in the new static method.
is that feasible?
many thanks
javi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]