Search code examples
javaloggingapache-commons-logging

Is it possible to create multiple log files with JCL?


I am trying to save the results of a specific action in the server side of my application so that i can use the logs for mining purposes. To send the results to db in runtime for each action causes too much transaction load. So I want to save them first as logs and dump the log files into database periodically. The application uses jcl for logging. However, i could not find any solution for this in jcl. Is it possible? Also any other idea for this purpose will be really appreciated.


Solution

  • Can I suggest you to go for SLF4J and logback? Logback has RollingFileAppender that can solve your task. Logback has a native binding for SLF4J