How to sanitize log messages in Log4j to save them in database

前端 未结 9 1631
忘了有多久
忘了有多久 2021-01-01 05:03

I\'m trying to save log messages to a central database. In order to do this, I configured the following Appender in log4j\'s xml configuration:



        
9条回答
  •  囚心锁ツ
    2021-01-01 05:55

    I'm not familiar with log4j or JDBC, but I do know JDBC supports prepared statements. Perhaps there is a way to use that with the JDBCAppender

提交回复
热议问题