That should be possible. Its the setting I use on most of my applications. Is 
it not working?

----- Original Message ----
From: Robert Heinicke <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, July 2, 2007 5:28:55 AM
Subject: Negative precision modifier for pattern layout

Hello list!

The 1.2 SDK reference states that the logger and type conversation
patterns of the pattern layout accept a precision modifier.

Is it possible to specify a precision that will _remove_ the n left most
components? E.g. if logger is "foo.bar.baz" "%logger{-1}" would result
in "bar.baz".

We typically use one appender per module namespace so that everything
from the "company.product.module.*" namespace gets logged into
"product_module.log". Therefore we only need the rest of the namespace
(which can be arbitrarily deep) in the logfile itself.

TIA,
Robert



Reply via email to