Package elf4j.engine.service.pattern
Class SystemPropertyPattern
- java.lang.Object
-
- elf4j.engine.service.pattern.SystemPropertyPattern
-
- All Implemented Interfaces:
LogPattern,PerformanceSensitive
public class SystemPropertyPattern extends Object implements LogPattern
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemPropertyPatternfrom(String patternSegment)booleanincludeCallerDetail()booleanincludeCallerThread()voidrender(LogEvent logEvent, StringBuilder target)Extracts the content of particular interest to this log pattern instance from the specified log event, and appends the result to the specified target aggregator of the final log message
-
-
-
Method Detail
-
from
@Nonnull public static SystemPropertyPattern from(String patternSegment)
- Parameters:
patternSegment- text patternSegment to convert- Returns:
- converted patternSegment object
-
render
public void render(LogEvent logEvent, StringBuilder target)
Description copied from interface:LogPatternExtracts the content of particular interest to this log pattern instance from the specified log event, and appends the result to the specified target aggregator of the final log message- Specified by:
renderin interfaceLogPattern- Parameters:
logEvent- entire log content data source to rendertarget- logging text aggregator of the final log message
-
includeCallerDetail
public boolean includeCallerDetail()
- Specified by:
includeCallerDetailin interfacePerformanceSensitive- Returns:
- true if log should include caller detail such as method, line number...
-
includeCallerThread
public boolean includeCallerThread()
- Specified by:
includeCallerThreadin interfacePerformanceSensitive- Returns:
- true if log should include call thread information such thread name and id
-
-