object Logger extends ConsoleLogger
Companion object that both serves as a global logger instance and provides factory methods to create individual instances.
- Alphabetic
- By Inheritance
- Logger
- ConsoleLogger
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def apply(cl: Class[_]): Logger
- def apply(name: String): Logger
- 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
- Definition Classes
- 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
- Definition Classes
- Logger
- 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
- Definition Classes
- Logger
- 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
- Definition Classes
- Logger
- 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
- Definition Classes
- Logger
- 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
- Definition Classes
- Logger
- 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
- Definition Classes
- Logger
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- ConsoleLogger → Logger
- 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
- Definition Classes
- Logger
- Note
In contrast to the individual logging methods like
info
,debug
etc., this method is not elidable.
- val name: String
- Attributes
- protected
- Definition Classes
- ConsoleLogger → Logger
- 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
- ConsoleLogger → AnyRef → Any
- def trace(msg: => String): Unit
Logs a tracing message.
Logs a tracing message.
Elidable at level
elidable.FINER
.- msg
the message
- Definition Classes
- Logger
- 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
- Definition Classes
- Logger
- Annotations
- @elidable(elidable.WARNING)