class Logger extends AnyRef
Scala wrapper for logging.
- Alphabetic
- By Inheritance
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Logger(name: String, wrapped: java.util.logging.Logger)
- Attributes
- 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 addHandler(handler: java.util.logging.Handler): Unit
- final def apply(level: Level, thrown: Throwable, message: String, items: Any*): Unit
- final def apply(level: Level, message: String, items: Any*): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearHandlers(): Unit
Remove all existing log handlers.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def critical(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def critical(msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def debug(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def debug(msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def debugLazy(msg: => AnyRef): Unit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def error(msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def fatal(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def fatal(msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFilter(): Filter
- def getHandlers(): Array[java.util.logging.Handler]
- def getLevel(): java.util.logging.Level
- def getParent(): java.util.logging.Logger
- def getUseParentHandlers(): Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def ifCritical(thrown: Throwable, message: => AnyRef): Unit
- def ifCritical(message: => AnyRef): Unit
- def ifDebug(thrown: Throwable, message: => AnyRef): Unit
- def ifDebug(message: => AnyRef): Unit
- def ifError(thrown: Throwable, message: => AnyRef): Unit
- def ifError(message: => AnyRef): Unit
- def ifFatal(thrown: Throwable, message: => AnyRef): Unit
- def ifFatal(message: => AnyRef): Unit
- def ifInfo(thrown: Throwable, message: => AnyRef): Unit
- def ifInfo(message: => AnyRef): Unit
- def ifTrace(thrown: Throwable, message: => AnyRef): Unit
- def ifTrace(message: => AnyRef): Unit
- def ifWarning(thrown: Throwable, message: => AnyRef): Unit
- def ifWarning(message: => AnyRef): Unit
- def info(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def info(msg: String, items: Any*): Unit
- Annotations
- @varargs()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLoggable(level: java.util.logging.Level): Boolean
- final def log(level: Level, thrown: Throwable, message: String, items: Any*): Unit
Log a message, with sprintf formatting, at the desired level, and attach an exception and stack trace.
Log a message, with sprintf formatting, at the desired level, and attach an exception and stack trace. The message is lazily formatted if formatting is required.
- Annotations
- @varargs()
- final def log(level: Level, message: String, items: Any*): Unit
Log a message, with sprintf formatting, at the desired level.
Log a message, with sprintf formatting, at the desired level.
- Annotations
- @varargs()
- def log(record: java.util.logging.LogRecord): Unit
- def logLazy(level: Level, thrown: Throwable, message: => AnyRef): Unit
Log a message, with lazy (call-by-name) computation of the message, and attach an exception and stack trace.
- def logLazy(level: Level, message: => AnyRef): Unit
Log a message, with lazy (call-by-name) computation of the message, at the desired level.
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def removeHandler(handler: java.util.logging.Handler): Unit
- def setFilter(filter: Filter): Unit
- def setLevel(level: java.util.logging.Level): Unit
- def setUseParentHandlers(use: Boolean): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def throwable(thrown: Throwable, message: => AnyRef): Unit
Lazily logs a throwable.
Lazily logs a throwable. If the throwable contains a log level (via HasLogLevel), it will log at the stored level, otherwise it will log at
Level.ERROR
. - def throwable(thrown: Throwable, message: => AnyRef, defaultLevel: Level): Unit
Lazily logs a throwable.
Lazily logs a throwable. If the throwable contains a log level (via HasLogLevel), it will log at the stored level, otherwise it will log at
defaultLevel
. - def toString(): String
- Definition Classes
- Logger → AnyRef → Any
- def trace(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def trace(msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def traceLazy(msg: => AnyRef): Unit
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def warning(thrown: Throwable, msg: String, items: Any*): Unit
- Annotations
- @varargs()
- def warning(msg: String, items: Any*): Unit
- Annotations
- @varargs()