package scala_logging
Contains a simple Scala API for logging along with a Java Logging API implementation.
The generic logging interface is provided by the Logger trait. Implementations for various logging frameworks such as SLF4J or OSGi LogService are provided in separate modules.
See JavaUtilLogging for a convenient way to use Java Logging API.
Type Members
-
class
FallbackLogger extends Logger
Logger decorator which logs to a secondary logger if the primary logger is not available.
-
trait
JavaUtilLogging extends AnyRef
Convenience trait which you can mix into your class to have easy access to a logger based on Java Logging API.
Convenience trait which you can mix into your class to have easy access to a logger based on Java Logging API.
import domino.scala_logging.JavaUtilLogging class MyService extends JavaUtilLogging { log.debug("Hello World!") }
-
class
JavaUtilLoggingLogger extends Logger
Logger Implementation using the logging facility integrated into the JDK.
-
trait
Logger extends AnyRef
Provides a common interface for logging in Scala.
Provides a common interface for logging in Scala.
Makes use of Scala's Call-by-Name parameters so you don't have to check whether the desired log level is enabled or not.
Implementations should make sure that the arguments are evaluated only if the corresponding log level is enabled. Additionatlly, they should handle the two-parameter methods like the single-parameter methods if
null
is passed as the exception parameter.