class ConsoleAppender extends AbstractAppender

A logger that logs to the console. On supported systems, the level labels are colored.

This logger is not thread-safe.

Linear Supertypes
AbstractAppender, Appender, AbstractFilterable, Filterable, AbstractLifeCycle, LifeCycle2, LifeCycle, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConsoleAppender
  2. AbstractAppender
  3. Appender
  4. AbstractFilterable
  5. Filterable
  6. AbstractLifeCycle
  7. LifeCycle2
  8. LifeCycle
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def addFilter(arg0: Filter): Unit
    Definition Classes
    AbstractFilterable → Filterable
  2. def append(event: LogEvent): Unit
    Definition Classes
    ConsoleAppender → Appender
  3. def appendLog(level: util.Level.Value, message: ⇒ String): Unit

    Appends the message message to the to the log at level level.

    Appends the message message to the to the log at level level.

    level

    The importance level of the message.

    message

    The message to log.

  4. 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.

  5. def error(arg0: String, arg1: Throwable): Unit
    Definition Classes
    AbstractAppender
  6. def error(arg0: String, arg1: LogEvent, arg2: Throwable): Unit
    Definition Classes
    AbstractAppender
  7. def error(arg0: String): Unit
    Definition Classes
    AbstractAppender
  8. def getFilter(): Filter
    Definition Classes
    AbstractFilterable → Filterable
  9. def getHandler(): ErrorHandler
    Definition Classes
    AbstractAppender → Appender
  10. def getLayout(): Layout[_ <: Serializable]
    Definition Classes
    AbstractAppender → Appender
  11. def getName(): String
    Definition Classes
    AbstractAppender → Appender
  12. def getState(): org.apache.logging.log4j.core.LifeCycle.State
    Definition Classes
    AbstractLifeCycle → LifeCycle
  13. def getTrace: Int

    Returns the number of lines for stacktrace.

  14. def hasFilter(): Boolean
    Definition Classes
    AbstractFilterable → Filterable
  15. def ignoreExceptions(): Boolean
    Definition Classes
    AbstractAppender → Appender
  16. def initialize(): Unit
    Definition Classes
    AbstractLifeCycle → LifeCycle
  17. def isFiltered(arg0: LogEvent): Boolean
    Definition Classes
    AbstractFilterable → Filterable
  18. def isInitialized(): Boolean
    Definition Classes
    AbstractLifeCycle
  19. def isStarted(): Boolean
    Definition Classes
    AbstractLifeCycle → LifeCycle
  20. def isStarting(): Boolean
    Definition Classes
    AbstractLifeCycle
  21. def isStopped(): Boolean
    Definition Classes
    AbstractLifeCycle → LifeCycle
  22. def isStopping(): Boolean
    Definition Classes
    AbstractLifeCycle
  23. def removeFilter(arg0: Filter): Unit
    Definition Classes
    AbstractFilterable → Filterable
  24. def setHandler(arg0: ErrorHandler): Unit
    Definition Classes
    AbstractAppender → Appender
  25. def setTrace(level: Int): Unit
  26. def start(): Unit
    Definition Classes
    AbstractFilterable → AbstractLifeCycle → LifeCycle
  27. def stop(arg0: Long, arg1: TimeUnit): Boolean
    Definition Classes
    AbstractFilterable → AbstractLifeCycle → LifeCycle2
  28. def stop(): Unit
    Definition Classes
    AbstractLifeCycle → LifeCycle
  29. def toString(): String
    Definition Classes
    AbstractAppender → AnyRef → Any
  30. 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. See StackTrace.trimmed.

    t

    The Throwable whose stack trace to log.

    traceLevel

    How to shorten the stack trace.