Hi,

This is probably a trivial question.

* How do I spread logging to separate files on a per Category basis.

For example, I want all logging to 'root' to go to 'main.log', and all
logging to Category 'jtapi' to go to 'jtapi.log'. I always thought a could
do it like this:

# Set root category priority to DEBUG and its only appender to 'main'.
log4j.rootCategory=debug, main

# Main log properties
log4j.appender.main=org.apache.log4j.FileAppender
log4j.appender.main.File=C:\\Projects\\Work\\Dist\\MbxTest\\log\\main.log
log4j.appender.main.layout=org.apache.log4j.PatternLayout
log4j.appender.main.layout.ConversionPattern=%d{HH:mm:ss} [%-5p] [%c] [%t]
[%C{1}.%M():%L] - "%m"%n

# Jtapi log properties
log4j.appender.jtapi=org.apache.log4j.FileAppender
log4j.appender.jtapi.File=C:\\Projects\\Work\\Dist\\MbxTest\\log\\jtapi.log
log4j.appender.jtapi.layout=org.apache.log4j.PatternLayout
log4j.appender.jtapi.layout.ConversionPattern=%d{HH:mm:ss} [%t] - "%m"%n

...and set the additivity flag in "jtapi" to false. But no. Does not work.

What do I do wrong?

--

Thomas




*************************************************************************
Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. 
Confidential. No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

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

Reply via email to