Quantcast
Channel: Sud's Blog
Viewing all articles
Browse latest Browse all 12

Log4j and MySQL

$
0
0
When configuring log4j with an appender to log to a MySQL database there are some nuances you might need to be aware of.First, here is what the relevant settings in the log4j.properties file should look like:# Set root logger level to DEBUG and its only appender to DB.log4j.rootLogger=DEBUG, DB# The database loggerlog4j.appender.DB=org.apache.log4j.jdbc.JDBCAppenderlog4j.appender.DB.URL=

Viewing all articles
Browse latest Browse all 12

Trending Articles