Class FileLocationPatternConverter
java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
org.apache.logging.log4j.core.pattern.FileLocationPatternConverter
- All Implemented Interfaces:
LocationAware,PatternConverter
@Plugin(name="FileLocationPatternConverter",
category="Converter")
public final class FileLocationPatternConverter
extends LogEventPatternConverter
implements LocationAware
Returns the event's line location information in a StringBuilder.
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGERFields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(LogEvent event, StringBuilder output) Formats an event into a string buffer.static FileLocationPatternConverternewInstance(String[] options) Obtains an instance of pattern converter.booleanMethods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
emptyVariableOutput, format, handlesThrowable, isVariableMethods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass
-
Method Details
-
newInstance
Obtains an instance of pattern converter.- Parameters:
options- options, may be null.- Returns:
- instance of pattern converter.
-
format
Formats an event into a string buffer.- Specified by:
formatin classLogEventPatternConverter- Parameters:
event- event to format, may not be null.output- string buffer to which the formatted event will be appended. May not be null.
-
requiresLocation
public boolean requiresLocation()- Specified by:
requiresLocationin interfaceLocationAware
-