Package | Description |
---|---|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
org.apache.logging.log4j.message |
Public Message Types used for Log4j 2.
|
Modifier and Type | Method | Description |
---|---|---|
StructuredDataId |
LoggerFields.getSdId() |
Modifier and Type | Field | Description |
---|---|---|
static StructuredDataId |
StructuredDataId.META |
RFC 5424 Meta.
|
static StructuredDataId |
StructuredDataId.ORIGIN |
RFC 5424 Origin.
|
static StructuredDataId |
StructuredDataId.TIME_QUALITY |
RFC 5424 Time Quality.
|
Modifier and Type | Method | Description |
---|---|---|
StructuredDataId |
StructuredDataMessage.getId() |
Returns this message id.
|
StructuredDataId |
StructuredDataId.makeId(String defaultId,
int anEnterpriseNumber) |
Creates an id based on the current id.
|
StructuredDataId |
StructuredDataId.makeId(StructuredDataId id) |
Creates an id using another id to supply default values.
|
Modifier and Type | Method | Description |
---|---|---|
String |
StructuredDataMessage.asString(StructuredDataMessage.Format format,
StructuredDataId structuredDataId) |
Formats the structured data as described in RFC 5424.
|
void |
StructuredDataMessage.asString(StructuredDataMessage.Format format,
StructuredDataId structuredDataId,
StringBuilder sb) |
Formats the structured data as described in RFC 5424.
|
StructuredDataId |
StructuredDataId.makeId(StructuredDataId id) |
Creates an id using another id to supply default values.
|
protected void |
StructuredDataMessage.setId(StructuredDataId id) |
Sets the id.
|
Constructor | Description |
---|---|
StructuredDataMessage(StructuredDataId id,
String msg,
String type) |
Creates a StructuredDataMessage using a StructuredDataId, message, and type (max 32 characters).
|
StructuredDataMessage(StructuredDataId id,
String msg,
String type,
int maxLength) |
Creates a StructuredDataMessage using a StructuredDataId, message, and type (max 32 characters).
|
StructuredDataMessage(StructuredDataId id,
String msg,
String type,
Map<String,String> data) |
Creates a StructuredDataMessage using a StructuredDataId, message, type (max 32 characters), and an initial map
of structured data to include.
|
StructuredDataMessage(StructuredDataId id,
String msg,
String type,
Map<String,String> data,
int maxLength) |
Creates a StructuredDataMessage using a StructuredDataId, message, type (max 32 characters), and an initial map
of structured data to include.
|
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.