Class AbstractInternalLogger
java.lang.Object
io.micrometer.core.util.internal.logging.AbstractInternalLogger
- All Implemented Interfaces:
InternalLogger
,Serializable
@Deprecated
public abstract class AbstractInternalLogger
extends Object
implements InternalLogger, Serializable
Deprecated.
NOTE: This file has been copied and slightly modified from
{io.netty.util.internal.logging}.
A skeletal implementation of
InternalLogger
. This class implements all methods
that have a InternalLogLevel
parameter by default to call specific logger
methods such as InternalLogger.info(String)
or InternalLogger.isInfoEnabled()
.- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractInternalLogger
(String name) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Log an exception (throwable) at the DEBUG level.void
Deprecated.Log an exception (throwable) at the ERROR level.void
Deprecated.Log an exception (throwable) at the INFO level.boolean
isEnabled
(InternalLogLevel level) Deprecated.Is the logger instance enabled for the specifiedlevel
?void
log
(InternalLogLevel level, String msg) Deprecated.Log a message at the specifiedlevel
.void
log
(InternalLogLevel level, String format, Object arg) Deprecated.Log a message at the specifiedlevel
according to the specified format and argument.void
log
(InternalLogLevel level, String format, Object... arguments) Deprecated.Log a message at the specifiedlevel
according to the specified format and arguments.void
log
(InternalLogLevel level, String format, Object argA, Object argB) Deprecated.Log a message at the specifiedlevel
according to the specified format and arguments.void
log
(InternalLogLevel level, String msg, Throwable cause) Deprecated.Log an exception (throwable) at the specifiedlevel
with an accompanying message.void
log
(InternalLogLevel level, Throwable cause) Deprecated.Log an exception (throwable) at the specifiedlevel
.name()
Deprecated.Return the name of thisInternalLogger
instance.protected Object
Deprecated.toString()
Deprecated.void
Deprecated.Log an exception (throwable) at the TRACE level.void
Deprecated.Log an exception (throwable) at the WARN level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micrometer.core.util.internal.logging.InternalLogger
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
Constructor Details
-
AbstractInternalLogger
Deprecated.Creates a new instance.- Parameters:
name
- logger name
-
-
Method Details
-
name
Deprecated.Description copied from interface:InternalLogger
Return the name of thisInternalLogger
instance.- Specified by:
name
in interfaceInternalLogger
- Returns:
- name of this logger instance
-
isEnabled
Deprecated.Description copied from interface:InternalLogger
Is the logger instance enabled for the specifiedlevel
?- Specified by:
isEnabled
in interfaceInternalLogger
- Parameters:
level
- log level- Returns:
- True if this Logger is enabled for the specified
level
, false otherwise.
-
trace
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the TRACE level.- Specified by:
trace
in interfaceInternalLogger
- Parameters:
t
- the exception (throwable) to log
-
debug
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the DEBUG level.- Specified by:
debug
in interfaceInternalLogger
- Parameters:
t
- the exception (throwable) to log
-
info
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the INFO level.- Specified by:
info
in interfaceInternalLogger
- Parameters:
t
- the exception (throwable) to log
-
warn
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the WARN level.- Specified by:
warn
in interfaceInternalLogger
- Parameters:
t
- the exception (throwable) to log
-
error
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the ERROR level.- Specified by:
error
in interfaceInternalLogger
- Parameters:
t
- the exception (throwable) to log
-
log
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the specifiedlevel
with an accompanying message.- Specified by:
log
in interfaceInternalLogger
- Parameters:
level
- log levelmsg
- the message accompanying the exceptioncause
- the exception (throwable) to log
-
log
Deprecated.Description copied from interface:InternalLogger
Log an exception (throwable) at the specifiedlevel
.- Specified by:
log
in interfaceInternalLogger
- Parameters:
level
- log levelcause
- the exception (throwable) to log
-
log
Deprecated.Description copied from interface:InternalLogger
Log a message at the specifiedlevel
.- Specified by:
log
in interfaceInternalLogger
- Parameters:
level
- log levelmsg
- the message string to be logged
-
log
Deprecated.Description copied from interface:InternalLogger
Log a message at the specifiedlevel
according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the specified
level
.- Specified by:
log
in interfaceInternalLogger
- Parameters:
level
- log levelformat
- the format stringarg
- the argument
-
log
Deprecated.Description copied from interface:InternalLogger
Log a message at the specifiedlevel
according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the specified
level
.- Specified by:
log
in interfaceInternalLogger
- Parameters:
level
- log levelformat
- the format stringargA
- the first argumentargB
- the second argument
-
log
Deprecated.Description copied from interface:InternalLogger
Log a message at the specifiedlevel
according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the specified
level
. However, this variant incurs the hidden (and relatively small) cost of creating anObject[]
before invoking the method, even if this logger is disabled for the specifiedlevel
. The variants takingone
andtwo
arguments exist solely in order to avoid this hidden cost.- Specified by:
log
in interfaceInternalLogger
- Parameters:
level
- log levelformat
- the format stringarguments
- a list of 3 or more arguments
-
readResolve
Deprecated.- Throws:
ObjectStreamException
-
toString
Deprecated.
-
AbstractInternalLogger
instead.