Is there some library that has something like log4j logger that would persist exception to database instead of log file? I’m using Spring, Hibernate and MySql combo most of the time so anything that would integrate with them would be great.
Is there some library that has something like log4j logger that would persist exception
Share
Actually, after a little GISing it seems that log4j can store it’s output in any JDBC-compatible database with a little in-code logging logic and the proper log4j configuration (I actually did not know it could do this so…thanks for asking the question I guess).
I found a tutorial at
http://www.cubrid.org/store_java_logs_to_databdase_using_log4j
so have at it. It uses the Cubrid database, but it should be fairly easy to adapt to mysql/postgresql/firebird/etc (again, a few minutes on google turns up a number of how-to’s and tutorials. Had to GIS “log4j mysql config” instead of something logical like “log4j mysql tutorial” which turned up nothing useful for whatever reason).