public class ConsoleAppenderFactory extends AbstractAppenderFactory
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| Constructor and Description |
|---|
ConsoleAppenderFactory() |
| Modifier and Type | Method and Description |
|---|---|
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> |
build(ch.qos.logback.classic.LoggerContext context,
String applicationName,
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> layout)
Given a Logback context, an application name, and a layout, build a new appender.
|
ConsoleAppenderFactory.ConsoleStream |
getTarget() |
TimeZone |
getTimeZone() |
void |
setTarget(ConsoleAppenderFactory.ConsoleStream target) |
void |
setTimeZone(TimeZone timeZone) |
addThresholdFilter, buildLayout, getDiscardingThreshold, getLogFormat, getQueueSize, getThreshold, setDiscardingThreshold, setLogFormat, setQueueSize, setThreshold, wrapAsync, wrapAsyncpublic TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public ConsoleAppenderFactory.ConsoleStream getTarget()
public void setTarget(ConsoleAppenderFactory.ConsoleStream target)
public ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> build(ch.qos.logback.classic.LoggerContext context,
String applicationName,
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> layout)
AppenderFactorycontext - the Logback contextapplicationName - the application namelayout - the layout for loggingAppenderCopyright © 2015. All rights reserved.