c3p0的log4j配置

时间:2020-12-25 04:22:11

com.mchange.v2.log.log4j.Log4jMLog=info,console,c3p0files
log4j.appender.c3p0files=org.apache.log4j.DailyRollingFileAppender
log4j.appender.c3p0files.File=WEB-INF/log/HTTSC_c3p0.log
log4j.appender.c3p0files.DatePattern = '-'yyyy-MM-dd'.log'
log4j.appender.c3p0files.layout=org.apache.log4j.PatternLayout
log4j.appender.c3p0files.layout.ConversionPattern=%d-[HTTSC] %p %t %c - %m%n

c3p0 log level

  OFF
  SEVERE
  WARNING
  INFO
  CONFIG
  FINE
  FINER
  FINEST
  ALL