Logs on the database


I want to save my logs of the app (not the liquibase logs) on the database, any suggestion to i make/use a solution to this?

Best Regards

Here is a list of the standard appenders for log4j, you can always add a JDBC appender to the log4j configuration to achieve that.

There is also a JPA Appender but I think it might need some little coding and might not be available in 1.x versions which is what we currently use. This is the 1.2 appender

I don’t know what your use case for this is, but another approach you might consider is to let the logging still happen to a file, but you ingest this file into a (different) database. One leading set of tools for this is https://www.elastic.co/elk-stack