Skip to main content

Customice logging

Introduction

Sync server logging can be customized by adding a log4j.properties file in the conf directory.

Example

Following is a sample log4j.properties configuration file:

log4j.rootCategory=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p [%t] %c:%m%n
log4j.category.org.hibernate=WARN
log4j.category.org.springframework=WARN
log4j.category.org.springframework.orm.hibernate3.HibernateTransactionManager=FATAL
log4j.category.RemoteServiceLocator=FATAL
log4j.category.com.soffid.iam.spring=DEBUG
log4j.category.org.apache.commons.jcs.auxiliary=DEBUG
log4j.category.org.apache.commons.jcs.engine=DEBUG