Logger

class Logger(name: String, var wrapped: Logger) extends LoggerBase with Serializable

An wrapper of java.util.logging.Logger for supporting rich-format logging

An wrapper of java.util.logging.Logger for supporting rich-format logging

Companion
object
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def addHandler(h: Handler): Unit
def clear: Unit
def clearAllHandlers: Unit

Clean up all handlers including this and parent, ancestor loggers

Clean up all handlers including this and parent, ancestor loggers

def clearHandlers: Unit
def getHandlers: Seq[Handler]
def getName: String
def getParent: Option[Logger]
def isEnabled(level: LogLevel): Boolean
def log(record: LogRecord): Unit
def log(level: LogLevel, source: LogSource, message: Any): Unit
def logWithCause(level: LogLevel, source: LogSource, message: Any, cause: Throwable): Unit
def resetHandler(h: Handler): Unit
def resetLogLevel: Unit
def setFormatter(formatter: LogFormatter): Unit
def setLogLevel(l: LogLevel): Unit
def setUseParentHandlers(use: Boolean): Unit
def suppressWarnings[U](f: => U): U

Suppress warning messages (i.e., setting ERROR log level during the code block). Useful for exception testing

Suppress warning messages (i.e., setting ERROR log level during the code block). Useful for exception testing

Inherited methods

inline def debug(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggerBase
inline def debug(inline message: Any): Unit
Inherited from
LoggerBase
inline def error(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggerBase
inline def error(inline message: Any): Unit
Inherited from
LoggerBase
inline def info(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggerBase
inline def info(inline message: Any): Unit
Inherited from
LoggerBase
inline def trace(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggerBase
inline def trace(inline message: Any): Unit
Inherited from
LoggerBase
inline def warn(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggerBase
inline def warn(inline message: Any): Unit
Inherited from
LoggerBase