Class LoggerImpl

    • Field Detail

      • EMPTY_LOG_ENTRY

        protected static final LogEntry EMPTY_LOG_ENTRY
      • logSink

        protected final LogSink logSink
      • name

        protected final java.lang.String name
      • tz

        protected final java.util.TimeZone tz
      • localTimestamp

        protected io.deephaven.base.text.TimestampBufferMicros localTimestamp
      • loggingLevel

        protected LogLevel loggingLevel
      • showLevel

        protected final boolean showLevel
      • showThreadName

        protected final boolean showThreadName
    • Constructor Detail

      • LoggerImpl

        public LoggerImpl​(LogEntryPool logEntryPool,
                          LogSink logSink,
                          java.lang.String prefix,
                          LogLevel loggingLevel,
                          LoggerTimeSource timeSource,
                          java.util.TimeZone tz,
                          boolean showLevel,
                          boolean showThreadName)
    • Method Detail

      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface Logger
      • getEntry

        public LogEntry getEntry​(LogLevel level)
        Description copied from interface: Logger
        May return empty LogEntry if that's what the level dictates...
        Specified by:
        getEntry in interface Logger
      • getEntry

        public LogEntry getEntry​(LogLevel level,
                                 long currentTimeMicros,
                                 @Nullable
                                 java.lang.Throwable t)
        Specified by:
        getEntry in interface Logger
      • fatal

        public LogEntry fatal​(java.lang.Throwable t)
        Specified by:
        fatal in interface Logger
      • error

        public LogEntry error​(java.lang.Throwable t)
        Specified by:
        error in interface Logger
      • warn

        public LogEntry warn​(java.lang.Throwable t)
        Specified by:
        warn in interface Logger
      • info

        public LogEntry info​(java.lang.Throwable t)
        Specified by:
        info in interface Logger
      • debug

        public LogEntry debug​(java.lang.Throwable t)
        Specified by:
        debug in interface Logger
      • trace

        public LogEntry trace​(java.lang.Throwable t)
        Specified by:
        trace in interface Logger
      • fatal

        public void fatal​(java.lang.Object object)
        Specified by:
        fatal in interface Logger
      • fatal

        public void fatal​(java.lang.Object object,
                          java.lang.Throwable t)
        Specified by:
        fatal in interface Logger
      • error

        public void error​(java.lang.Object object)
        Specified by:
        error in interface Logger
      • error

        public void error​(java.lang.Object object,
                          java.lang.Throwable t)
        Specified by:
        error in interface Logger
      • warn

        public void warn​(java.lang.Object object)
        Specified by:
        warn in interface Logger
      • warn

        public void warn​(java.lang.Object object,
                         java.lang.Throwable t)
        Specified by:
        warn in interface Logger
      • info

        public void info​(java.lang.Object object)
        Specified by:
        info in interface Logger
      • info

        public void info​(java.lang.Object object,
                         java.lang.Throwable t)
        Specified by:
        info in interface Logger
      • debug

        public void debug​(java.lang.Object object)
        Specified by:
        debug in interface Logger
      • debug

        public void debug​(java.lang.Object object,
                          java.lang.Throwable t)
        Specified by:
        debug in interface Logger
      • trace

        public void trace​(java.lang.Object object)
        Specified by:
        trace in interface Logger
      • trace

        public void trace​(java.lang.Object object,
                          java.lang.Throwable t)
        Specified by:
        trace in interface Logger
      • email

        public void email​(java.lang.Object object)
        Specified by:
        email in interface Logger
      • email

        public void email​(java.lang.Object object,
                          java.lang.Throwable t)
        Specified by:
        email in interface Logger
      • isFatalEnabled

        public boolean isFatalEnabled()
        Specified by:
        isFatalEnabled in interface Logger
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface Logger
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface Logger
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface Logger
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface Logger
      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface Logger
      • isEmailEnabled

        public boolean isEmailEnabled()
        Specified by:
        isEmailEnabled in interface Logger