trait Logger extends AnyRef
An interface for logging events.
Copyright (C) 2008, 2015 Hans-Hermann Bode
- Alphabetic
- By Inheritance
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at(lev: Level): Logger
Sets the current level of this logger.
Sets the current level of this logger.
Since this logger itself is returned by this method, it can be used in a declaration like in the example below.
- lev
the level
- returns
this logger
val logger = Logger("name") at Level.Debug
Example: - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def config(msg: => String): Unit
Logs a configuration message.
Logs a configuration message.
Elidable at level
elidable.CONFIG
.- msg
the message
- Annotations
- @elidable(elidable.CONFIG)
- def debug(msg: => String): Unit
Logs a debugging message.
Logs a debugging message.
Elidable at level
elidable.FINE
.- msg
the message
- Annotations
- @elidable(elidable.FINE)
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(msg: => String): Unit
Logs an error message.
Logs an error message.
Elidable at level
elidable.SEVERE
.- msg
the message
- Annotations
- @elidable(elidable.SEVERE)
- def fatal(msg: => String): Unit
Logs a fatal message.
Logs a fatal message.
Elidable at level
elidable.SEVERE
.- msg
the message
- Annotations
- @elidable(elidable.SEVERE)
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def info(msg: => String): Unit
Logs an informational message.
Logs an informational message.
Elidable at level
elidable.INFO
.- msg
the message
- Annotations
- @elidable(elidable.INFO)
- def isEnabled(lev: Level): Boolean
States whether a level is enabled for this logger.
States whether a level is enabled for this logger.
The level specified is enabled if it is higher than or equal to the current level of this logger.
- lev
the level
- returns
true
iflev
is enabled,false
if not
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(lev: Level, msg: => String): Unit
Logs a message provided that the particular level specified is higher than or equal to the current level of this logger.
Logs a message provided that the particular level specified is higher than or equal to the current level of this logger.
- lev
the level
- msg
the message
- Note
In contrast to the individual logging methods like
info
,debug
etc., this method is not elidable.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(msg: => String): Unit
Logs a tracing message.
Logs a tracing message.
Elidable at level
elidable.FINER
.- msg
the message
- Annotations
- @elidable(elidable.FINER)
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def warn(msg: => String): Unit
Logs a warning message.
Logs a warning message.
Elidable at level
elidable.WARNING
.- msg
the message
- Annotations
- @elidable(elidable.WARNING)