类 AbstractLogger
- java.lang.Object
-
- io.microsphere.logging.AbstractLogger
-
-
构造器概要
构造器 限定符 构造器 说明 protected
AbstractLogger(java.lang.String name)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
debug(java.lang.String format, java.lang.Object... arguments)
Log a message at the DEBUG level according to the specified format and arguments.void
error(java.lang.String format, java.lang.Object... arguments)
Log a message at the ERROR level according to the specified format and arguments.java.lang.String
getName()
Return the name of thisLogger
instance.void
info(java.lang.String format, java.lang.Object... arguments)
Log a message at the INFO level according to the specified format and arguments.protected void
log(java.util.function.Consumer<java.lang.String> messageHandler, java.util.function.BiConsumer<java.lang.String,java.lang.Throwable> messageThrowableHandler, java.lang.String format, java.lang.Object... arguments)
protected java.lang.String
resolveMessage(java.lang.String format, java.lang.Object... arguments)
Resolve the format messagevoid
trace(java.lang.String format, java.lang.Object... arguments)
Log a message at the TRACE level according to the specified format and arguments.void
warn(java.lang.String format, java.lang.Object... arguments)
Log a message at the WARN level according to the specified format and arguments.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 io.microsphere.logging.Logger
debug, debug, error, error, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
-
-
-
-
方法详细资料
-
getName
public final java.lang.String getName()
从接口复制的说明:Logger
Return the name of thisLogger
instance.
-
trace
public void trace(java.lang.String format, java.lang.Object... arguments)
从接口复制的说明:Logger
Log a message at the TRACE level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]
before invoking the method, even if this logger is disabled for TRACE.
-
debug
public void debug(java.lang.String format, java.lang.Object... arguments)
从接口复制的说明:Logger
Log a message at the DEBUG level according to the specified format and arguments.
-
info
public void info(java.lang.String format, java.lang.Object... arguments)
从接口复制的说明:Logger
Log a message at the INFO level according to the specified format and arguments.
-
warn
public void warn(java.lang.String format, java.lang.Object... arguments)
从接口复制的说明:Logger
Log a message at the WARN level according to the specified format and arguments.
-
error
public void error(java.lang.String format, java.lang.Object... arguments)
从接口复制的说明:Logger
Log a message at the ERROR level according to the specified format and arguments.
-
log
protected void log(java.util.function.Consumer<java.lang.String> messageHandler, java.util.function.BiConsumer<java.lang.String,java.lang.Throwable> messageThrowableHandler, java.lang.String format, java.lang.Object... arguments)
- 参数:
messageHandler
- only message to logmessageThrowableHandler
- message andThrowable
to logformat
- the format message or regular messagearguments
- zero or more arguments for the format pattern
-
resolveMessage
protected java.lang.String resolveMessage(java.lang.String format, java.lang.Object... arguments)
Resolve the format message- 参数:
format
- the format messagearguments
- zero or more arguments for the format pattern- 返回:
- non-null
-
-