I am using Jakarta Commons Logging as a logging mechanism for my APIs. I noticed that it logs in the verbose output. And I'm wondering if there is a method to log output into a file (e.g. HTML format) for daily archival purposes.
Commons Logging is just a thin API layer on top of other logging APIs, most notably log4j and java.util.logging. You can configure either one of those to log in whichever way you want. E.g., log4j has DailyRollingFileAppender, which creates a new log file for each day.
Joined: Dec 25, 2005
Hi Ulf Dittmer
Do u mean I should use log4j instead or there is a way I can reference log4j from within JCL?
Well the daily logging of log4j seemed good
Joined: Mar 22, 2005
I have no idea what JCL is or does or can do, so I can't help you with that question.