Class VerbatimPattern

    • Constructor Detail

      • VerbatimPattern

        public VerbatimPattern()
    • Method Detail

      • from

        @Nonnull
        public static VerbatimPattern from​(String patternSegment)
        Parameters:
        patternSegment - text pattern segment to convert
        Returns:
        converted pattern segment 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​(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