Relational database logging
Introduction
Configuration
logfile=/var/log/tomcat/spy.log driverlist=com.mysql.cj.jdbc.Driver dateformat=MM-dd-yy HH:mm:ss:SS logMessageFormat=com.p6spy.engine.spy.appender.CustomLineFormat customLogMessageFormat=%(currentTime)|%(executionTime)|%(category)|connection%(connectionId)\n%(sql)<Resource name="jdbc/mysql" driverClassName="com.p6spy.engine.spy.P6SpyDriver" auth="Container" type="javax.sql.DataSource" initialSize="3" maxActive="10" maxIdle="10" maxWait="30000" poolPreparedStatements="true" testOnBorrow="true" validationQuery="select 1" username="orbeon" password="" url="jdbc:p6spy:mysql://localhost:3306/orbeon?useUnicode=true&characterEncoding=UTF8"/>
See also
Last updated