Package io.deephaven.io.logger
Class LoggerImpl
java.lang.Object
io.deephaven.io.logger.LoggerImpl
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
NullLoggerImpl,ProcessStreamLoggerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.io.logger.Logger
Logger.Null -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final LogEntryprotected TimestampBufferMicrosprotected final LogEntryPoolprotected LogLevelprotected final LogSinkprotected final Stringprotected final booleanprotected final booleanprotected final LoggerTimeSource -
Constructor Summary
ConstructorsConstructorDescriptionLoggerImpl(LogEntryPool logEntryPool, LogSink logSink, String prefix, LogLevel loggingLevel, LoggerTimeSource timeSource, ZoneId zoneId, boolean showLevel, boolean showThreadName) LoggerImpl(LogEntryPool logEntryPool, LogSink logSink, String prefix, LogLevel loggingLevel, LoggerTimeSource timeSource, TimeZone tz, boolean showLevel, boolean showThreadName) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondebug()voidvoidemail()voidvoiderror()voidvoidfatal()voidvoidMay return empty LogEntry if that's what the level dictates...getSink()info()voidvoidbooleanbooleanbooleanbooleanbooleanbooleanisLevelEnabled(LogLevel level) booleanbooleanvoidvoidshutdown()trace()voidvoidwarn()voidvoid
-
Field Details
-
EMPTY_LOG_ENTRY
-
logEntryPool
-
logSink
-
name
-
timeSource
-
localTimestamp
-
loggingLevel
-
showLevel
protected final boolean showLevel -
showThreadName
protected final boolean showThreadName
-
-
Constructor Details
-
LoggerImpl
public LoggerImpl(LogEntryPool logEntryPool, LogSink logSink, String prefix, LogLevel loggingLevel, LoggerTimeSource timeSource, ZoneId zoneId, boolean showLevel, boolean showThreadName) -
LoggerImpl
@Deprecated public LoggerImpl(LogEntryPool logEntryPool, LogSink logSink, String prefix, LogLevel loggingLevel, LoggerTimeSource timeSource, TimeZone tz, boolean showLevel, boolean showThreadName)
-
-
Method Details
-
shutdown
public void shutdown() -
getEntry
Description copied from interface:LoggerMay return empty LogEntry if that's what the level dictates... -
getEntry
-
getEntry
-
getEntry
-
setLevel
-
getSink
-
isLevelEnabled
- Specified by:
isLevelEnabledin interfaceLogger
-
fatal
-
error
-
warn
-
info
-
debug
-
trace
-
email
-
fatal
-
error
-
warn
-
info
-
debug
-
trace
-
fatal
-
fatal
-
error
-
error
-
warn
-
warn
-
info
-
info
-
debug
-
debug
-
trace
-
trace
-
email
-
email
-
isFatalEnabled
public boolean isFatalEnabled()- Specified by:
isFatalEnabledin interfaceLogger
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceLogger
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceLogger
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceLogger
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceLogger
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceLogger
-
isEmailEnabled
public boolean isEmailEnabled()- Specified by:
isEmailEnabledin interfaceLogger
-
LoggerImpl(LogEntryPool, LogSink, String, LogLevel, LoggerTimeSource, ZoneId, boolean, boolean)