@Plugin(name="LoggerFields", category="Core", printObject=true) public final class LoggerFields extends Object
Modifier and Type | Method | Description |
---|---|---|
static LoggerFields |
createLoggerFields(KeyValuePair[] keyValuePairs,
String sdId,
String enterpriseId,
boolean discardIfAllFieldsAreEmpty) |
Create a LoggerFields from KeyValuePairs.
|
boolean |
getDiscardIfAllFieldsAreEmpty() |
|
Map<String,String> |
getMap() |
|
StructuredDataId |
getSdId() |
|
String |
toString() |
@PluginFactory public static LoggerFields createLoggerFields(@PluginElement("LoggerFields") KeyValuePair[] keyValuePairs, @PluginAttribute("sdId") String sdId, @PluginAttribute("enterpriseId") String enterpriseId, @PluginAttribute("discardIfAllFieldsAreEmpty") boolean discardIfAllFieldsAreEmpty)
keyValuePairs
- An array of KeyValuePairs.sdId
- The SD-ID in an SD-ELEMENTenterpriseId
- The IANA assigned enterprise numberdiscardIfAllFieldsAreEmpty
- this SD-ELEMENT should be discarded if all fields are emptypublic StructuredDataId getSdId()
public boolean getDiscardIfAllFieldsAreEmpty()
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.