类 Log4j2Logger
- java.lang.Object
-
- org.apache.dubbo.common.logger.log4j2.Log4j2Logger
-
-
构造器概要
构造器 构造器 说明 Log4j2Logger(org.apache.logging.log4j.Logger logger)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
debug(String msg)
Logs a message with debug log level.void
debug(String msg, Throwable e)
Logs an error with debug log level.void
debug(Throwable e)
Logs an error with debug log level.void
error(String msg)
Logs a message with error log level.void
error(String msg, Throwable e)
Logs an error with error log level.void
error(Throwable e)
Logs an error with error log level.void
info(String msg)
Logs a message with info log level.void
info(String msg, Throwable e)
Logs an error with info log level.void
info(Throwable e)
Logs an error with info log level.boolean
isDebugEnabled()
Is debug logging currently enabled?boolean
isErrorEnabled()
Is error logging currently enabled?boolean
isInfoEnabled()
Is info logging currently enabled?boolean
isTraceEnabled()
Is trace logging currently enabled?boolean
isWarnEnabled()
Is warn logging currently enabled?void
trace(String msg)
Logs a message with trace log level.void
trace(String msg, Throwable e)
Logs an error with trace log level.void
trace(Throwable e)
Logs an error with trace log level.void
warn(String msg)
Logs a message with warn log level.void
warn(String msg, Throwable e)
Logs a message with warn log level.void
warn(Throwable e)
Logs a message with warn log level.
-
-
-
方法详细资料
-
trace
public void trace(String msg, Throwable e)
从接口复制的说明:Logger
Logs an error with trace log level.
-
debug
public void debug(String msg, Throwable e)
从接口复制的说明:Logger
Logs an error with debug log level.
-
warn
public void warn(String msg, Throwable e)
从接口复制的说明:Logger
Logs a message with warn log level.
-
error
public void error(String msg, Throwable e)
从接口复制的说明:Logger
Logs an error with error log level.
-
isTraceEnabled
public boolean isTraceEnabled()
从接口复制的说明:Logger
Is trace logging currently enabled?- 指定者:
isTraceEnabled
在接口中Logger
- 返回:
- true if trace is enabled
-
isDebugEnabled
public boolean isDebugEnabled()
从接口复制的说明:Logger
Is debug logging currently enabled?- 指定者:
isDebugEnabled
在接口中Logger
- 返回:
- true if debug is enabled
-
isInfoEnabled
public boolean isInfoEnabled()
从接口复制的说明:Logger
Is info logging currently enabled?- 指定者:
isInfoEnabled
在接口中Logger
- 返回:
- true if info is enabled
-
isWarnEnabled
public boolean isWarnEnabled()
从接口复制的说明:Logger
Is warn logging currently enabled?- 指定者:
isWarnEnabled
在接口中Logger
- 返回:
- true if warn is enabled
-
isErrorEnabled
public boolean isErrorEnabled()
从接口复制的说明:Logger
Is error logging currently enabled?- 指定者:
isErrorEnabled
在接口中Logger
- 返回:
- true if error is enabled
-
-