Logging to database using java logging framework

This post explains how to log messages to the database. Create a table with below schema CREATE TABLE logging ( loggername VARCHAR(50) NULL DEFAULT NULL, threadId INT(11) NULL DEFAULT NULL, loglevel VARCHAR(50) NULL DEFAULT NULL, logmessage VARCHAR(50) NULL DEFAULT NULL ) Create a custom handler which will log the message to the database. In our… Continue reading Logging to database using java logging framework