SuppressLoggerDeprecationFilter

uk.gov.hmrc.play.bootstrap.filters.SuppressLoggerDeprecationFilter
class SuppressLoggerDeprecationFilter extends TurboFilter

Suppresses Play's startup warning: "Logger configuration in conf files is deprecated and has no effect. Use a logback configuration file instead."

Play emits this (in GuiceApplicationBuilder) whenever it finds log level values under the logger config path, on the assumption that nothing consumes them. On MDTP that assumption is false: LoggerModule reads those same logger.* entries at startup and applies them via Logback's setLevel, so config-driven log levels DO take effect.

This must be a Logback TurboFilter rather than logic in LoggerModule, because the warning is emitted during logger-factory configuration — before module bindings run — so by the time LoggerModule executes the message has already been logged. A TurboFilter is loaded with the Logback config (before the warning fires) and is consulted for every logging event, so it can drop this specific message at source.

Attributes

Graph
Supertypes
class TurboFilter
trait LifeCycle
class ContextAwareBase
trait ContextAware
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def decide(marker: Marker, logger: Logger, level: Level, format: String, params: Array[AnyRef], t: Throwable): FilterReply

Attributes

Definition Classes
TurboFilter

Inherited methods

def addError(x$0: String, x$1: Throwable): Unit

Attributes

Inherited from:
ContextAwareBase
def addError(x$0: String): Unit

Attributes

Inherited from:
ContextAwareBase
def addInfo(x$0: String, x$1: Throwable): Unit

Attributes

Inherited from:
ContextAwareBase
def addInfo(x$0: String): Unit

Attributes

Inherited from:
ContextAwareBase
def addStatus(x$0: Status): Unit

Attributes

Inherited from:
ContextAwareBase
def addWarn(x$0: String, x$1: Throwable): Unit

Attributes

Inherited from:
ContextAwareBase
def addWarn(x$0: String): Unit

Attributes

Inherited from:
ContextAwareBase
def getContext(): Context

Attributes

Inherited from:
ContextAwareBase
def getName(): String

Attributes

Inherited from:
TurboFilter
def getStatusManager(): StatusManager

Attributes

Inherited from:
ContextAwareBase
def isStarted(): Boolean

Attributes

Inherited from:
TurboFilter
def setContext(x$0: Context): Unit

Attributes

Inherited from:
ContextAwareBase
def setName(x$0: String): Unit

Attributes

Inherited from:
TurboFilter
def start(): Unit

Attributes

Inherited from:
TurboFilter
def stop(): Unit

Attributes

Inherited from:
TurboFilter