package scala
- Alphabetic
- Public
- All
Type Members
-
final
class
Logger
extends AnyVal
Scala wrapper for the Log4j
Logger
interface.Scala wrapper for the Log4j
Logger
interface.Frequently the purpose of logging is to provide information about what is happening in the system, which requires including information about the objects being manipulated. In Scala, you can use string interpolation to achieve this:
logger.debug(s"Logging in user ${user.getName} with birthday ${user.calcBirthday}")
Since this wrapper is implemented with macros, the String construction and method invocations will only occur when debug logging is enabled.
-
trait
Logging
extends AnyRef
Mix in this trait into classes from which you want to log, give you a
logger
value with a Logger named according to the class.
Value Members
-
object
Logger
Factory for Loggers.
-
object
LoggingContext
extends Map[String, String]
Manages the context data (context map, MDC) that is added to log events.
Manages the context data (context map, MDC) that is added to log events.
A wrapper around
org.apache.logging.log4j.ThreadContext
.