You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jm...@za.safmarine.com on 2004/03/15 09:20:54 UTC

Example commons_logging.properties





Hi
Can someone show me(or a pointer to a good example on the web)  an
example commons_logging.properties file with logging set to INFO only

jeff mutonho



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Example commons_logging.properties

Posted by Julio Cesar De Salvo <jd...@itechnology.com.ar>.
My version is set to work with log4j, that's where you set the logging
level to INFO.


Commons-logging.properties
--------------------------
# Directly selects log4j logging implementation class.
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Lo
g4jFactory

# Maps to a Log4J category (uses log4j.properties)
#  note: org.apache.log4j.Category is deprecated in favor of
org.apache.log4j.Logger
#  and requests for a Category object will return a Logger object.
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCate
goryLog

lo4j.properties
---------------
# Set the root logger level to DEBUG and its only appender to rolling
log4j.rootLogger=WARN, stdout

# Set the logger level for everything under "org.apache" to DEBUG
log4j.logger.org.apache.torque=DEBUG, rolling
log4j.logger.org.apache.struts=DEBUG, rolling
log4j.logger.org.itechnology=DEBUG, org.itechnology

# Log for Itechnology Intranet inner classes 
log4j.appender.org.itechnology=org.apache.log4j.FileAppender
log4j.appender.org.itechnology.file=./logs/itechnology_intranet.log
log4j.appender.org.itechnology.layout=org.apache.log4j.PatternLayout
log4j.appender.org.itechnology.layout.conversionPattern=%d [%t] %-5p %c
- %m%n
log4j.appender.org.itechnology.append=false

# Configure the stdout appender to be a ConsoleAppender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d - %p %c - %m%n

# Configure the rolling appender to be a RollingFileAppender
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=./logs/itechnology_intranet_org_apache.log
log4j.appender.rolling.MaxFileSize=1MB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d [%t] %-5p %c- %m%n




-----Mensaje original-----
De: jmutonho@za.safmarine.com [mailto:jmutonho@za.safmarine.com] 
Enviado el: Lunes, 15 de Marzo de 2004 05:21 a.m.
Para: struts-user@jakarta.apache.org
Asunto: Example commons_logging.properties






Hi
Can someone show me(or a pointer to a good example on the web)  an
example commons_logging.properties file with logging set to INFO only

jeff mutonho



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org