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
Ordering
- Alphabetic
- By Inheritance
Inherited
- ConsoleAppender
- AbstractAppender
- Appender
- AbstractFilterable
- Filterable
- AbstractLifeCycle
- LifeCycle2
- LifeCycle
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
addFilter(arg0: Filter): Unit
- Definition Classes
- AbstractFilterable → Filterable
-
def
append(event: LogEvent): Unit
- Definition Classes
- ConsoleAppender → Appender
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
equalsImpl(arg0: Any): Boolean
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
error(arg0: String, arg1: Throwable): Unit
- Definition Classes
- AbstractAppender
-
def
error(arg0: String, arg1: LogEvent, arg2: Throwable): Unit
- Definition Classes
- AbstractAppender
-
def
error(arg0: String): Unit
- Definition Classes
- AbstractAppender
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getFilter(): Filter
- Definition Classes
- AbstractFilterable → Filterable
-
def
getHandler(): ErrorHandler
- Definition Classes
- AbstractAppender → Appender
-
def
getLayout(): Layout[_ <: Serializable]
- Definition Classes
- AbstractAppender → Appender
-
def
getName(): String
- Definition Classes
- AbstractAppender → Appender
-
def
getState(): State
- Definition Classes
- AbstractLifeCycle → LifeCycle
-
def
getTrace: Int
Returns the number of lines for stacktrace.
-
def
hasFilter(): Boolean
- Definition Classes
- AbstractFilterable → Filterable
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
hashCodeImpl(): Int
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
ignoreExceptions(): Boolean
- Definition Classes
- AbstractAppender → Appender
-
def
initialize(): Unit
- Definition Classes
- AbstractLifeCycle → LifeCycle
-
def
isFiltered(arg0: LogEvent): Boolean
- Definition Classes
- AbstractFilterable → Filterable
-
def
isInitialized(): Boolean
- Definition Classes
- AbstractLifeCycle
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isStarted(): Boolean
- Definition Classes
- AbstractLifeCycle → LifeCycle
-
def
isStarting(): Boolean
- Definition Classes
- AbstractLifeCycle
-
def
isStopped(): Boolean
- Definition Classes
- AbstractLifeCycle → LifeCycle
-
def
isStopping(): Boolean
- Definition Classes
- AbstractLifeCycle
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
removeFilter(arg0: Filter): Unit
- Definition Classes
- AbstractFilterable → Filterable
-
def
setHandler(arg0: ErrorHandler): Unit
- Definition Classes
- AbstractAppender → Appender
-
def
setStarted(): Unit
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
setStarting(): Unit
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
setState(arg0: State): Unit
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
setStopped(): Unit
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
setStopping(): Unit
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
- def setTrace(level: Int): Unit
-
def
start(): Unit
- Definition Classes
- AbstractFilterable → AbstractLifeCycle → LifeCycle
-
def
stop(arg0: Long, arg1: TimeUnit, arg2: Boolean): Boolean
- Attributes
- protected[org.apache.logging.log4j.core.filter]
- Definition Classes
- AbstractFilterable
-
def
stop(arg0: Long, arg1: TimeUnit): Boolean
- Definition Classes
- AbstractFilterable → AbstractLifeCycle → LifeCycle2
-
def
stop(arg0: Future[_]): Boolean
- Attributes
- protected[org.apache.logging.log4j.core]
- Definition Classes
- AbstractLifeCycle
-
def
stop(): Unit
- Definition Classes
- AbstractLifeCycle → LifeCycle
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AbstractAppender → 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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )