@Plugin(name="Field", category="Core", printObject=true) public class GelfLogField extends Object
Constructor and Description |
---|
GelfLogField(String name,
String literal,
String mdc,
org.apache.logging.log4j.core.layout.PatternLayout patternLayout) |
Modifier and Type | Method and Description |
---|---|
static GelfLogField |
createField(org.apache.logging.log4j.core.config.Configuration config,
String name,
String literalValue,
String mdc,
String pattern) |
String |
getLiteral() |
String |
getMdc() |
String |
getName() |
org.apache.logging.log4j.core.layout.PatternLayout |
getPatternLayout() |
public String getName()
public String getLiteral()
public String getMdc()
public org.apache.logging.log4j.core.layout.PatternLayout getPatternLayout()
@PluginFactory public static GelfLogField createField(@PluginConfiguration org.apache.logging.log4j.core.config.Configuration config, @PluginAttribute(value="name") String name, @PluginAttribute(value="literal") String literalValue, @PluginAttribute(value="mdc") String mdc, @PluginAttribute(value="pattern") String pattern)
Copyright © 2013–2023. All rights reserved.