<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Hi,</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">As we have to deal with quite crappy SP these days, having highly detailed logfiles is required.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">But with a classic "TimeBasedRollingPolicy" appender, files are growing so fast that it can overfill the storage.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Its seems "SizeAndTimeBasedRollingPolicy" appenders could be the way to go.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Following Logback documentation, I have modified the "IDP_PROCESS" appender configuration this way :</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">
<div style="color: #cccccc; background-color: #1f1f1f; font-family: 'Droid Sans Mono', 'monospace', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;">
<div><span style="color: #cccccc;"><!-- Process log. --></span></div>
<div><span style="color: #cccccc;"><appender name="IDP_PROCESS" class="ch.qos.logback.core.rolling.RollingFileAppender"></span></div>
<div><span style="color: #cccccc;"> <File>${idp.logfiles}/idp-process.log</File></span></div>
<div> </div>
<div><span style="color: #cccccc;"> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"></span></div>
<div><span style="color: #cccccc;"> <fileNamePattern>${idp.logfiles}/idp-process-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern></span></div>
<div><span style="color: #cccccc;"> <maxHistory>2</maxHistory></span></div>
<div><span style="color: #cccccc;"> <maxFileSize>1MB<maxFileSize></span></div>
<div><span style="color: #cccccc;"> <totalSizeCap>5MB</totalSizeCap></span></div>
<div><span style="color: #cccccc;"> </rollingPolicy> </span></div>
<br />
<div><span style="color: #cccccc;"> <!--<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"></span></div>
<div><span style="color: #cccccc;"> <fileNamePattern>${idp.logfiles}/idp-process-%d{yyyy-MM-dd}.log.gz</fileNamePattern> </span></div>
<div><span style="color: #cccccc;"> <maxHistory>2</maxHistory></span></div>
<div><span style="color: #cccccc;"> </rollingPolicy>--></span></div>
<br />
<div><span style="color: #cccccc;"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"></span></div>
<div><span style="color: #cccccc;"> <charset>UTF-8</charset></span></div>
<div><span style="color: #cccccc;"> <Pattern>%date{ISO8601} - %mdc{idp.remote_addr} - %level [%logger:%line] - %msg%n%ex{short}</Pattern></span></div>
<div><span style="color: #cccccc;"> </encoder></span></div>
<br />
<div><span style="color: #cccccc;"> <!-- Ignore Velocity status page error. --></span></div>
<div><span style="color: #cccccc;"> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"></span></div>
<div><span style="color: #cccccc;"> <evaluator></span></div>
<div><span style="color: #cccccc;"> <matcher></span></div>
<div><span style="color: #cccccc;"> <Name>VelocityStatusMatcher</Name></span></div>
<div><span style="color: #cccccc;"> <regex>ResourceManager\s*: unable to find resource 'status\.vm' in any resource loader\.</regex></span></div>
<div><span style="color: #cccccc;"> </matcher></span></div>
<div><span style="color: #cccccc;"> <expression>VelocityStatusMatcher.matches(formattedMessage)</expression></span></div>
<div><span style="color: #cccccc;"> </evaluator></span></div>
<div><span style="color: #cccccc;"> <OnMatch>DENY</OnMatch></span></div>
<div><span style="color: #cccccc;"> </filter></span></div>
<div><span style="color: #cccccc;"></appender></span></div>
</div>
</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">With the "TimeBasedRollingPolicy" section enabled, everything is working fine.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">But when I switch to the "SizeAndTimeBasedRollingPolicy", I just don't have any logfile. Of course, storage problems are gone but it's not exactly what I am looking for :-)</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Seems this configuration file is preventing Logback from working, or is ignored because some problem, but I have not seen any error or warning in the output.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">I am a bit stuck.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Is Shibboleth able to use all the features existing in Logback, or it is focused on a specific/limited subset as provided in the default logfile ?</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Regards</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<br/><hr>FreeMail powered by <a href="https://mail.fr" target="_blank">mail.fr</a>