Class NullLoggerImpl

  • All Implemented Interfaces:
    Logger

    public class NullLoggerImpl
    extends LoggerImpl
    Logger implementation that calls Interceptors on log entries, but doesn't write them to anything. Note that this implementation does not append the timestamp or level to the entries.
    • Constructor Detail

      • NullLoggerImpl

        public NullLoggerImpl​(@NotNull
                              LogLevel loggingLevel)
    • Method Detail

      • getEntry

        public LogEntry getEntry​(LogLevel level,
                                 long currentTimeMicros,
                                 @Nullable
                                 java.lang.Throwable t)
        Override to avoid writing timestamp and level to the entry, as it's assumed they'll be handled independently
        Specified by:
        getEntry in interface Logger
        Overrides:
        getEntry in class LoggerImpl