Class FileNamePattern

    • Constructor Detail

      • FileNamePattern

        public FileNamePattern()
    • Method Detail

      • from

        @Nonnull
        public static FileNamePattern from​(String patternSegment)
        Parameters:
        patternSegment - text segment to convert
        Returns:
        converted patternSegment object
      • includeCallerDetail

        public boolean includeCallerDetail()
        Specified by:
        includeCallerDetail in interface PerformanceSensitive
        Returns:
        true if log should include caller detail such as method, line number...
      • includeCallerThread

        public boolean includeCallerThread()
        Specified by:
        includeCallerThread in interface PerformanceSensitive
        Returns:
        true if log should include call thread information such thread name and id
      • render

        public void render​(@NonNull
                           @NonNull LogEvent logEvent,
                           @NonNull
                           @NonNull StringBuilder target)
        Description copied from interface: LogPattern
        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
        Specified by:
        render in interface LogPattern
        Parameters:
        logEvent - entire log content data source to render
        target - logging text aggregator of the final log message