Lets say I'm in an application and I want to specify a in a class logger such
as follows:



> ...
> Logger log = Logger.getLogger("UseCase1");
> ...
> 

Now lets suppose I want "UseCase1" to be displayed in the resulting log file
next to the log statements from the "UseCase1" logger.  Is there any way to
do this using a conversion specifier in log4j.xml?



>                <layout class="org.apache.log4j.PatternLayout">
>                       <param name="ConversionPattern" 
>                        
> value="[[[[%someConversionSpecifierWhichResultsInUseCaseAsLoggerName]]]]
> - %m%n"/>
>          </layout>
> 

Thank you, 

     Andrew J. Leer

-- 
View this message in context: 
http://www.nabble.com/log4j-conversion-specifiers-and-logger-names-tf2727234.html#a7606069
Sent from the Log4j - Users mailing list archive at Nabble.com.


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

Reply via email to