class ConsoleAppender extends Appender
A logger that logs to the console. On supported systems, the level labels are colored.
This logger is not thread-safe.
- Alphabetic
- By Inheritance
- ConsoleAppender
- Appender
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConsoleAppender(name: String, properties: Properties, suppressedMessage: (SuppressedTraceContext) => Option[String])
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 appendLog(level: util.Level.Value, message: => String): Unit
Appends the message
message
to the to the log at levellevel
.Appends the message
message
to the to the log at levellevel
.- level
The importance level of the message.
- message
The message to log.
- Definition Classes
- Appender
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
- Definition Classes
- ConsoleAppender → AutoCloseable
- def control(event: util.ControlEvent.Value, message: => String): Unit
Logs a
ControlEvent
to the log.Logs a
ControlEvent
to the log.- event
The kind of
ControlEvent
.- message
The message to log.
- Definition Classes
- Appender
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 getTrace: Int
Returns the number of lines for stacktrace.
Returns the number of lines for stacktrace.
- Definition Classes
- Appender
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 setTrace(level: Int): Unit
- Definition Classes
- Appender
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(t: => Throwable, traceLevel: Int): Unit
Logs the stack trace of
t
, possibly shortening it.Logs the stack trace of
t
, possibly shortening it.The
traceLevel
parameter configures how the stack trace will be shortened. SeeStackTrace.trimmed
.- t
The
Throwable
whose stack trace to log.- traceLevel
How to shorten the stack trace.
- Definition Classes
- Appender
- 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()