Package elf4j.engine.service.pattern
Class PatternGroup
- java.lang.Object
-
- elf4j.engine.service.pattern.PatternGroup
-
- All Implemented Interfaces:
LogPattern,PerformanceSensitive
public class PatternGroup extends Object implements LogPattern
Composite of individual patterns forming the entire layout pattern
-
-
Constructor Summary
Constructors Constructor Description PatternGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatternGroupfrom(@NonNull String pattern)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 PatternGroup from(@NonNull @NonNull String pattern)
- Parameters:
pattern- entire layout pattern text from configuration- Returns:
- composite pattern object for the entire final log message output layout
-
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
-
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
-
-