Logback configuration problem (SizeAndTimeBasedRollingPolicy)

spfma.tech at e.mail.fr spfma.tech at e.mail.fr
Fri Sep 13 10:01:55 UTC 2024


Hi,   As we have to deal with quite crappy SP these days, having highly detailed logfiles is required.   But with a classic "TimeBasedRollingPolicy" appender, files are growing so fast that it can overfill the storage.   Its seems "SizeAndTimeBasedRollingPolicy" appenders could be the way to go.   Following Logback documentation, I have modified the "IDP_PROCESS" appender configuration this way :          ${idp.logfiles}/idp-process.log      ${idp.logfiles}/idp-process-%d{yyyy-MM-dd}.%i.log.gz  2  1MB  5MB    

    UTF-8  %date{ISO8601} - %mdc{idp.remote_addr} - %level [%logger:%line] - %msg%n%ex{short}   
          VelocityStatusMatcher  ResourceManager\s*: unable to find resource 'status\.vm' in any resource loader\.    VelocityStatusMatcher.matches(formattedMessage)    DENY        With the "TimeBasedRollingPolicy" section enabled, everything is working fine.   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 :-)   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.   I am a bit stuck.   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 ?   Regards   

-------------------------------------------------------------------------------------------------
FreeMail powered by mail.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240913/202a502b/attachment.htm>


More information about the users mailing list