...
In Colored Trails Log4J is configured to log all log statements (debug and lower) to stdout.
Logging to MySQL
Please note that the following instructions only concern the Colored Trails trunk
...
You may want to log your server output to a database. Log4J supports a JDBC Appender to log to a MySQL database. You can activate the JDBC Appender for the Colored Trails project by simply some uncommenting a few lines in the log4j.properties file.
...