As Robert said you can use the DuplicateMessageFilter. For now you would need to configure it in a logback.xml and use that in Sling [1].
Chetan Mehrotra [1] https://sling.apache.org/documentation/development/logging.html#external-config-file On Thu, Mar 23, 2017 at 4:43 PM, Robert Munteanu <[email protected]> wrote: > Hi, > > On Thu, 2017-03-23 at 11:03 +0000, Ian Boston wrote: >> Hi, >> Is there are way of configuring the logging service so that it >> doesn't >> repeatedly spam the logs with the same message or extremely high >> volume >> messages. This may seem like an odd request, but when a Sling >> instance >> running an application goes haywire spitting out massive exception >> stack >> traces. it can consume all available IO and also all available disk >> space >> quite quickly before anyone can get to it. >> >> Perhaps there is a logback feature already to deal with this ? > > Logback has the concept of filters > > https://logback.qos.ch/manual/filters.html > > but I am not sure how to link these to Sling's config. > > Robert
