public class ConsoleAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractAppenderFactory<E>
AppenderFactory implementation which provides an appender that writes events to the console.
Configuration Parameters:
| Name | Default | Description |
type |
REQUIRED | The appender type. Must be console. |
threshold |
ALL |
The lowest level of events to print to the console. |
timeZone |
UTC |
The time zone to which event timestamps will be converted. |
target |
stdout |
The name of the standard stream to which events will be written.
Can be stdout or stderr.
|
logFormat |
the default format | The Logback pattern with which events will be formatted. See the Logback documentation for details. |
AbstractAppenderFactory| Modifier and Type | Class and Description |
|---|---|
static class |
ConsoleAppenderFactory.ConsoleStream |
logFormat, threshold, timeZone| Constructor and Description |
|---|
ConsoleAppenderFactory() |
| Modifier and Type | Method and Description |
|---|---|
ch.qos.logback.core.Appender<E> |
build(ch.qos.logback.classic.LoggerContext context,
String applicationName,
LayoutFactory<E> layoutFactory,
LevelFilterFactory<E> levelFilterFactory,
AsyncAppenderFactory<E> asyncAppenderFactory)
Given a Logback context, an application name, a layout,
a levelFilterFactory, and an asyncAppenderFactory build a new appender.
|
ConsoleAppenderFactory.ConsoleStream |
getTarget() |
void |
setTarget(ConsoleAppenderFactory.ConsoleStream target) |
buildLayout, getDiscardingThreshold, getFilterFactories, getLogFormat, getQueueSize, getThreshold, getTimeZone, isIncludeCallerData, setDiscardingThreshold, setFilterFactories, setIncludeCallerData, setLogFormat, setQueueSize, setThreshold, setTimeZone, wrapAsync, wrapAsyncpublic ConsoleAppenderFactory.ConsoleStream getTarget()
public void setTarget(ConsoleAppenderFactory.ConsoleStream target)
public ch.qos.logback.core.Appender<E> build(ch.qos.logback.classic.LoggerContext context, String applicationName, LayoutFactory<E> layoutFactory, LevelFilterFactory<E> levelFilterFactory, AsyncAppenderFactory<E> asyncAppenderFactory)
AppenderFactorycontext - the Logback contextapplicationName - the application namelayoutFactory - the factory for the layout for logginglevelFilterFactory - the factory for the level filterasyncAppenderFactory - the factory for the async appenderAppenderCopyright © 2016. All rights reserved.