log4j.rootLogger=error, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Print the date in ISO 8601 format
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=application.log

log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n

# Axelor logging

# Log everything
log4j.logger.com.axelor=DEBUG

# Hibernate logging

# Log everything. Good for troubleshooting
#log4j.logger.org.hibernate=INFO

# Log all SQL DML statements as they are executed
#log4j.logger.org.hibernate.SQL=DEBUG
#log4j.logger.org.hibernate.engine.jdbc=DEBUG

# Log all SQL DDL statements as they are executed
#log4j.logger.org.hibernate.tool.hbm2ddl=INFO

# Log all JDBC parameters
#log4j.logger.org.hibernate.type=ALL

# Log transactions
#log4j.logger.org.hibernate.transaction=DEBUG

# Log L2-Cache
#log4j.logger.org.hibernate.cache=DEBUG

# Log JDBC resource acquisition
#log4j.logger.org.hibernate.jdbc=TRACE
#log4j.logger.org.hibernate.service.jdbc=TRACE

# Log connection pooling
#log4j.logger.com.mchange.v2.c3p0=TRACE
