[JIRA] Created: (LBCLASSIC-105) File not rolling over with SizeBasedTriggeringPolicy

File not rolling over with SizeBasedTriggeringPolicy ---------------------------------------------------- Key: LBCLASSIC-105 URL: http://jira.qos.ch/browse/LBCLASSIC-105 Project: logback-classic Issue Type: Bug Affects Versions: 0.9.14 Reporter: Ceki Gulcu Assignee: Logback dev list Original report http://qos.ch/pipermail/logback-user/2009-January/000878.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-105?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu commented on LBCLASSIC-105: -------------------------------------- Looking at the configuration file, the File property reads "${catalina.home}/logs/rp.log" while the FileNamePattern property is set to "rp.%i.log.gz". This means that the archived files will be located in current folder. If you wish to have the archived files located next to the current log file, you need to set FileNamePattern property to "${catalina.home}/logs/rp.%i.log.gz" I have tested the configuration file provided by Gianni. It seems to work just fine. If there are indeed problems with the roll over, they should be visible by printing logback's internal status. Here is code that does that: LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); StatusPrinter.print(lc); It should be invoked after roll over occurs.
File not rolling over with SizeBasedTriggeringPolicy ----------------------------------------------------
Key: LBCLASSIC-105 URL: http://jira.qos.ch/browse/LBCLASSIC-105 Project: logback-classic Issue Type: Bug Affects Versions: 0.9.14 Reporter: Ceki Gulcu Assignee: Ceki Gulcu
Original report http://qos.ch/pipermail/logback-user/2009-January/000878.html
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-105?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu resolved LBCLASSIC-105. ---------------------------------- Resolution: Cannot Reproduce As Gianni Doe reported on 16th of January 2009, the problem was fixed by setting the FileNamePattern to the correct (full) value.
File not rolling over with SizeBasedTriggeringPolicy ----------------------------------------------------
Key: LBCLASSIC-105 URL: http://jira.qos.ch/browse/LBCLASSIC-105 Project: logback-classic Issue Type: Bug Affects Versions: 0.9.14 Reporter: Ceki Gulcu Assignee: Ceki Gulcu
Original report http://qos.ch/pipermail/logback-user/2009-January/000878.html
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-105?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu closed LBCLASSIC-105. --------------------------------
File not rolling over with SizeBasedTriggeringPolicy ----------------------------------------------------
Key: LBCLASSIC-105 URL: http://jira.qos.ch/browse/LBCLASSIC-105 Project: logback-classic Issue Type: Bug Affects Versions: 0.9.14 Reporter: Ceki Gulcu Assignee: Ceki Gulcu
Original report http://qos.ch/pipermail/logback-user/2009-January/000878.html
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (1)
-
Ceki Gulcu (JIRA)