Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
org.apache.logging.log4j.core.net |
Log4j 2 network support.
|
Modifier and Type | Method | Description |
---|---|---|
Facility |
SyslogAppender.Builder.getFacility() |
Modifier and Type | Method | Description |
---|---|---|
static <B extends SyslogAppender.Builder<B>> |
SyslogAppender.createAppender(String host,
int port,
String protocolStr,
SslConfiguration sslConfiguration,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
String name,
boolean immediateFlush,
boolean ignoreExceptions,
Facility facility,
String id,
int enterpriseNumber,
boolean includeMdc,
String mdcId,
String mdcPrefix,
String eventPrefix,
boolean newLine,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String format,
Filter filter,
Configuration configuration,
Charset charset,
String exceptionPattern,
LoggerFields[] loggerFields,
boolean advertise) |
Deprecated.
|
B |
SyslogAppender.Builder.setFacility(Facility facility) |
Modifier and Type | Method | Description |
---|---|---|
Facility |
Rfc5424Layout.getFacility() |
|
Facility |
SyslogLayout.Builder.getFacility() |
|
Facility |
SyslogLayout.getFacility() |
Gets the facility.
|
Modifier and Type | Method | Description |
---|---|---|
static Rfc5424Layout |
Rfc5424Layout.createLayout(Facility facility,
String id,
int enterpriseNumber,
boolean includeMDC,
String mdcId,
String mdcPrefix,
String eventPrefix,
boolean newLine,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String exceptionPattern,
boolean useTlsMessageFormat,
LoggerFields[] loggerFields,
Configuration config) |
Create the RFC 5424 Layout.
|
static SyslogLayout |
SyslogLayout.createLayout(Facility facility,
boolean includeNewLine,
String escapeNL,
Charset charset) |
Deprecated.
|
B |
SyslogLayout.Builder.setFacility(Facility facility) |
Constructor | Description |
---|---|
SyslogLayout(Facility facility,
boolean includeNL,
String escapeNL,
Charset charset) |
Modifier and Type | Method | Description |
---|---|---|
Facility |
Priority.getFacility() |
Returns the Facility.
|
static Facility |
Facility.toFacility(String name) |
Returns the Facility for the given string.
|
static Facility |
Facility.toFacility(String name,
Facility defaultFacility) |
Returns the Facility for the given string.
|
static Facility |
Facility.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Facility[] |
Facility.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
static int |
Priority.getPriority(Facility facility,
Level level) |
Returns the priority value based on the Facility and Log Level.
|
static Facility |
Facility.toFacility(String name,
Facility defaultFacility) |
Returns the Facility for the given string.
|
Constructor | Description |
---|---|
Priority(Facility facility,
Severity severity) |
The Constructor.
|
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.