On Feb 28, 2005, at 10:26 AM, James Stauffer wrote:

DE BENEDICTIS DAVIDE <[EMAIL PROTECTED]> wrote:

I'm looking for a method to modifying (cutting) the outcoming logging
message on the fly. In this way I could update only the log4j conf files
without touching my working app.
Something like a %m with the ability to specify a maximum number of
chars.



Have you tried "%.80m" or similar? That should specify a maximum message length of 80 characters. If the message is longer it will be truncated from the beginning.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to