Hi,
   I am trying to assign two Appenders to two categories. The end intention
is to get the output in two different formats for two categories. I have
also configured two Conversion pattern for two different appenders. What I
find is that the pattern for appender VOA takes the pattern as that of A1. I
need two different patterns for two set of categories. Can you please help
me. 

The property file is as below.

# Set root category priority to DEBUG and its only appender to A1.
log4j.rootCategory=DEBUG, A1
log4j.com.myname.cog.y.z=DEBUG, VOA

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.VOA=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c %x - %m%n

#VOA uses PatternLayout
log4j.appender.VOA.layout=org.apache.log4j.PatternLayout
log4j.appender.VOA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

#log4j.category.java.util=WARN


Parthasarathi Das

Cognizant
GPTronics Building
Phone 3573211 ext 1510


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

Reply via email to