Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.2.3
-
Windows Server 2016.
We are using logback framework with the config on the info mode
<configuration debug="true" scan="true" scanPeriod="30 seconds" ><configuration debug="true" scan="true" scanPeriod="30 seconds" > <shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"> <delay>10000</delay> </shutdownHook>
<appender name="fileinfo" class="ch.qos.logback.classic.sift.SiftingAppender"> <!-- This is MDC value -> <!- We will assign a value to 'fis.logfilename' via Java code -> <discriminator> <key>fis.logfilename</key> <defaultValue>defaultlogger${bluepumpkin.ProcessName}</defaultValue> </discriminator>
<sift> <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${IMPACT360DATADIR}/Logs/Integration Server/${fis.logfilename}logback.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${IMPACT360DATADIR}/Logs/Integration Server/zip/${fis.logfilename}-logback.%d{yyyy-MM-dd-HH}.%i.log.zip</fileNamePattern> <!fileNamePattern>${IMPACT360DATADIR}/Logs/Integration Server/${fis.logfilename}-logback.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> <!Keep archive for hours specified below (7days * 24 Hours, as rolling policy is by hour as fileNamePattern includes HH)> <maxHistory>168</maxHistory> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <!- rollover when the file reaches the size below-> <maxFileSize>30MB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> <encoder> <pattern>####[${fis.processname}][${user.name}] [%date{yyyy-MM-dd HH:mm:ss.SSSZ}] [%level] [%thread] [%logger{2}] <##[{user=${user.name}}]##> - %message%n</pattern> </encoder> </appender> </sift> </appender> <logger name="org.eclipse.jetty.server.HttpChannel" level="OFF"/> <logger name="org.eclipse.jetty.http.HttpGenerator" level="OFF"/> <logger name="org.eclipse.jetty.io.WriteFlusher" level="OFF"/> <logger name="org.eclipse.jetty.server.HttpOutput" level="OFF"/> <!Staffing Calc logger Filter-> <logger name="com.bluepumpkin.bpxCommon.common.Base.StopWatch" level="OFF"/> <root level="INFO"> <appender-ref ref="fileinfo" /> <appender-ref ref="file" /> </root> </configuration>Windows Server 2016. We are using logback framework with the config on the info mode <configuration debug="true" scan="true" scanPeriod="30 seconds" ><configuration debug="true" scan="true" scanPeriod="30 seconds" > <shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"> <delay>10000</delay> </shutdownHook> <appender name="fileinfo" class="ch.qos.logback.classic.sift.SiftingAppender"> <!-- This is MDC value - > <! - We will assign a value to 'fis.logfilename' via Java code - > <discriminator> <key>fis.logfilename</key> <defaultValue>defaultlogger ${bluepumpkin.ProcessName}</defaultValue> </discriminator> <sift> <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${IMPACT360DATADIR}/Logs/Integration Server/${fis.logfilename} logback.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${IMPACT360DATADIR}/Logs/Integration Server/zip/${fis.logfilename}-logback.%d{yyyy-MM-dd-HH}.%i.log.zip</fileNamePattern> <! fileNamePattern>${IMPACT360DATADIR}/Logs/Integration Server/${fis.logfilename}-logback.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern > <! Keep archive for hours specified below (7days * 24 Hours, as rolling policy is by hour as fileNamePattern includes HH) > <maxHistory>168</maxHistory> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <! - rollover when the file reaches the size below- > <maxFileSize>30MB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> <encoder> <pattern>####[${fis.processname}] [${user.name}] [%date{yyyy-MM-dd HH:mm:ss.SSSZ}] [%level] [%thread] [%logger{ 2}] <##[{user=${user.name}}]##> - %message%n</pattern> </encoder> </appender> </sift> </appender> <logger name="org.eclipse.jetty.server.HttpChannel" level="OFF"/> <logger name="org.eclipse.jetty.http.HttpGenerator" level="OFF"/> <logger name="org.eclipse.jetty.io.WriteFlusher" level="OFF"/> <logger name="org.eclipse.jetty.server.HttpOutput" level="OFF"/> <! Staffing Calc logger Filter -> <logger name="com.bluepumpkin.bpxCommon.common.Base.StopWatch" level="OFF"/> <root level="INFO"> <appender-ref ref="fileinfo" /> <appender-ref ref="file" /> </root> </configuration>
Description
We have multiple jvms running.. they are supposed log the info.
For some reason the log file is not getting zipped up and keep on growing for multiple days.
Beyond the max size configured. Small sample attached from the 250MB file logs attached..