Hi all !
I have the need to write logs from some packages in a file so I have
elaborated this log4j.properties file :

log4j.rootCategory=DEBUG

#I want to log information from packages hibernate.objects.* and from
iceObjects.*
log4j.category.hibernate.objects=INHERITED,A2
log4j.category.iceObjects=INHERITED,A2

#I want to log statements with DEBUG or higher level
log4j.category.hibernate.objects=DEBUG
log4j.category.iceObjects=DEBUG

log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n


log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.File=/u02/oracle/user_projects/domains/NMS/application.log
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%p %t %c - %m%n
log4j.appender.A2.MaxFileSize=500KB


The packages I'm interested to log are those beginning with iceObjects.* and
hibernate.objects.*
I've put this log4j.properties file in the WEB-INF/classes folder and
deployed the web application on Oracle Weblogic.

However the log file application.log is never created. Can anybody give me a
hint ? is the file correct ?
thanks a lot
Federico
-- 
View this message in context: 
http://old.nabble.com/Logging-some-packages-to-File-tp28680496p28680496.html
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