class Logger extends LoggerBase with Serializable
An wrapper of java.util.logging.Logger for supporting rich-format logging
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Logger
- Serializable
- LoggerBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Logger(name: String, wrapped: java.util.logging.Logger)
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(h: Handler): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear: Unit
- def clearAllHandlers: Unit
Clean up all handlers including this and parent, ancestor loggers
- def clearHandlers: Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- macro def debug(message: Any, cause: Throwable): Unit
- Definition Classes
- LoggerBase
- macro def debug(message: Any): Unit
- Definition Classes
- LoggerBase
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- macro def error(message: Any, cause: Throwable): Unit
- Definition Classes
- LoggerBase
- macro def error(message: Any): Unit
- Definition Classes
- LoggerBase
- def formatLog(message: Any): String
- Attributes
- protected
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getHandlers: Seq[Handler]
- def getLogLevel: LogLevel
- def getName: String
- def getParent: Option[Logger]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- macro def info(message: Any, cause: Throwable): Unit
- Definition Classes
- LoggerBase
- macro def info(message: Any): Unit
- Definition Classes
- LoggerBase
- def isEnabled(level: LogLevel): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMultiLine(str: String): Boolean
- Attributes
- protected
- def log(level: LogLevel, source: LogSource, message: Any): Unit
- def log(record: LogRecord): Unit
- def logWithCause(level: LogLevel, source: LogSource, message: Any, cause: Throwable): Unit
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def resetHandler(h: Handler): Unit
- def resetLogLevel: Unit
- def setFormatter(formatter: LogFormatter): Unit
- def setLogLevel(l: LogLevel): Unit
- def setUseParentHandlers(use: Boolean): Unit
- def suppressLogAroundFuture[U](body: => Future[U])(implicit ec: ExecutionContext): Future[U]
Suppress the log level around the given Future.
Suppress the log level around the given Future. After the given Future completes, the log level will be reset to the original level.
- def suppressLogs[U](f: => U): U
Suppress all log messages.
Suppress all log messages. This is useful for error handling tests
- def suppressWarnings[U](f: => U): U
Suppress warning messages (i.e., setting ERROR log level during the code block).
Suppress warning messages (i.e., setting ERROR log level during the code block). Useful for exception testing
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- macro def trace(message: Any, cause: Throwable): Unit
- Definition Classes
- LoggerBase
- macro def trace(message: Any): Unit
- Definition Classes
- LoggerBase
- 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])
- macro def warn(message: Any, cause: Throwable): Unit
- Definition Classes
- LoggerBase
- macro def warn(message: Any): Unit
- Definition Classes
- LoggerBase
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)