Class DeephavenNullLoggerImpl

java.lang.Object
com.fishlib.io.logger.LoggerImpl
com.illumon.iris.db.util.logging.DeephavenNullLoggerImpl
All Implemented Interfaces:
com.fishlib.io.logger.Logger

public class DeephavenNullLoggerImpl extends com.fishlib.io.logger.LoggerImpl
This is a clone of NullLoggerImpl that adds configurability to the pool sizes.

NullLoggerImpl has this documentation: 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.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface com.fishlib.io.logger.Logger

    com.fishlib.io.logger.Logger.Null
  • Field Summary

    Fields inherited from class com.fishlib.io.logger.LoggerImpl

    EMPTY_LOG_ENTRY, localTimestamp, logEntryPool, loggingLevel, logSink, name, showLevel, showThreadName, timeSource, tz

    Fields inherited from interface com.fishlib.io.logger.Logger

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeephavenNullLoggerImpl(com.fishlib.io.log.LogLevel loggingLevel)
     
    DeephavenNullLoggerImpl(com.fishlib.io.log.LogLevel loggingLevel, long takeTimeout)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fishlib.io.log.LogEntry
    getEntry(com.fishlib.io.log.LogLevel level, long currentTimeMicros, Throwable t)
    Override to avoid writing timestamp and level to the entry, as it's assumed they'll be handled independently

    Methods inherited from class com.fishlib.io.logger.LoggerImpl

    debug, debug, debug, debug, email, email, email, error, error, error, error, fatal, fatal, fatal, fatal, getEntry, getEntry, getEntry, getSink, info, info, info, info, isDebugEnabled, isEmailEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isLevelEnabled, isTraceEnabled, isWarnEnabled, setLevel, shutdown, trace, trace, trace, trace, warn, warn, warn, warn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeephavenNullLoggerImpl

      public DeephavenNullLoggerImpl(@NotNull com.fishlib.io.log.LogLevel loggingLevel)
    • DeephavenNullLoggerImpl

      public DeephavenNullLoggerImpl(@NotNull com.fishlib.io.log.LogLevel loggingLevel, long takeTimeout)
  • Method Details

    • getEntry

      public com.fishlib.io.log.LogEntry getEntry(com.fishlib.io.log.LogLevel level, long currentTimeMicros, @Nullable 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 com.fishlib.io.logger.Logger
      Overrides:
      getEntry in class com.fishlib.io.logger.LoggerImpl