Simple logback configuration.
Simple logback configuration.
Hopefully this will be discoverable by just typing loggerConfig.[TAB]
Examples:
loggerConfig.Logger("org.apache.spark").setLevel(Level.WARN)
loggerConfig.Logger().addAppender(
loggerConfig.newPatternLayoutEncoder("%-5level [%thread]: %message%n"),
loggerConfig.newConsoleAppender
)
This trait is meant to be mixed into a class to provide logging and logging configuration.
The enclosed methods provide a Scala-style logging signature where the message is a block instead of a string. This way the message string is not constructed unless the message will be logged.