• Post Reply Bookmark Topic Watch Topic
  • New Topic

Turning on C3PO logging: not writing info to log file

 
S Branch
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anything wrong or missing? Thanks.

log4j.debug=true

log4j.rootLogger=DEBUG, FILE, STDOUT, c3pO

### c3p0 logger
log4j.category.com.mchange.v2.log.MLog=DEBUG, c3p0
log4j.category.com.mchange.v2.c3p0=DEBUG, c3p0
log4j.category.com.mchange.v2.resourcepool=DEBUG, c3p0

### c3p0 appender
log4j.appender.c3p0=org.apache.log4j.DailyRollingFileAppender
log4j.appender.c3p0.FILE.File=C:\\c3pOLog\c3p0.log
log4j.appender.c3p0.layout=org.apache.log4j.PatternLayout
log4j.appender.c3p0.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n
log4j.appender.c3p0.DatePattern='.'yyyy-MM-dd

### c3po info displayed to stdout
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

### Checks c3po connections
log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvider=trace

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!