Logback suddenly stopped logging

which version are you using?
We are using SLF4J 1.5.10 and Logback 0.9.18. We have reverted to log4j as it is working fine with log4j.
We have logback configured with this configuration:
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <Append>true</Append> <file>logs/process.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>logs/process-%d{yyyy-MM-dd_HH}.%i.log</FileNamePattern> <TimeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <MaxFileSize>1MB</MaxFileSize> </TimeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> <layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%date|%level|%logger{10}|%msg|%throwable{5}%n</Pattern> </layout> </appender>
The thing is that in our production environment (HP-UX) and under heavy load, logging was working fine for a time, and suddenly stop working.
From the status we see this: INFO in c.q.l.co.rolling.helper.RenameUtil - Renaming file [/gp/log/process.log] to [/gp/log/process.2009-12-16_11.22.log], ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - IO failure in appender java.io.InterruptedIOException: , WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Attempted to append to non started appender [FILE]., WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Attempted to append to non started appender [FILE]., WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Attempted to append to non started appender [FILE]., INFO in c.q.l.co.rolling.helper.RenameUtil - Renaming file [/gp/log/application.log] to [/gp/log/application.2009-12-16_11.log]]

Hello Jorge, From the status messages you provided, it looks like an IO failure has occurred and that RollingFileAppender is having trouble falling back on its feet. I'd be suprised if log4j fared any better in the presence of the same IO failure but I might be wrong. Anyway, I have created a new jira issue to study this problem. Cheers, On 04/01/2010 10:14 AM, Jorge Morales Pou wrote:
which version are you using?
We are using SLF4J 1.5.10 and Logback 0.9.18. We have reverted to log4j as it is working fine with log4j.
We have logback configured with this configuration:
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <Append>true</Append> <file>logs/process.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>logs/process-%d{yyyy-MM-dd_HH}.%i.log</FileNamePattern> <TimeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <MaxFileSize>1MB</MaxFileSize> </TimeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> <layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%date|%level|%logger{10}|%msg|%throwable{5}%n</Pattern> </layout> </appender>
The thing is that in our production environment (HP-UX) and under heavy load, logging was working fine for a time, and suddenly stop working.
From the status we see this: INFO in c.q.l.co.rolling.helper.RenameUtil - Renaming file [/gp/log/process.log] to [/gp/log/process.2009-12-16_11.22.log], ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - IO failure in appender java.io.InterruptedIOException: , WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Attempted to append to non started appender [FILE]., WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Attempted to append to non started appender [FILE]., WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Attempted to append to non started appender [FILE]., INFO in c.q.l.co.rolling.helper.RenameUtil - Renaming file [/gp/log/application.log] to [/gp/log/application.2009-12-16_11.log]]
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gülcü
-
Jorge Morales Pou