[QFJ-110] Truncations / rolling archive of messages log Created: 22/Nov/06 Updated: 15/Apr/15 Resolved: 22/Nov/06 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Other | Priority: | Default |
Reporter: | Richard Pike | Assignee: | Steve Bate |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
Any |
Description |
How can I setup the logs to be truncated (.messages.log) . I would like them truncated / rolled (ie 1..n logs are retained). |
Comments |
Comment by Steve Bate [ 22/Nov/06 ] |
Hi Richard, One option is to the SLF4J log factory with Log4J. The Log4J library has a couple of "appenders" for rolling files. See RollingFileAppender and DailyRollingFileAppender. http://logging.apache.org/log4j/docs/api/org/apache/log4j/package-summary.html Regards, Steve |
Comment by Richard Pike [ 24/Nov/06 ] |
Can I get a sample of how to configure log4j |
Comment by garima gangwar [ 15/Apr/15 ] |
I also need a samle of this.. I tried this at my end but didn't work. |