@Plugin(name="LoggerFields", category="Core", printObject=true) public final class LoggerFields extends Object
Modifier and Type | Method and 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(value="LoggerFields") KeyValuePair[] keyValuePairs, @PluginAttribute(value="sdId") String sdId, @PluginAttribute(value="enterpriseId") String enterpriseId, @PluginAttribute(value="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-2023 The Apache Software Foundation. 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.