public class LogKit extends Object
Constructor and Description |
---|
LogKit() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(String message) |
static void |
debug(String message,
Throwable t) |
static void |
error(String message) |
static void |
error(String message,
Throwable t) |
static void |
fatal(String message) |
static void |
fatal(String message,
Throwable t) |
static void |
info(String message) |
static void |
info(String message,
Throwable t) |
static boolean |
isDebugEnabled() |
static boolean |
isErrorEnabled() |
static boolean |
isFatalEnabled() |
static boolean |
isInfoEnabled() |
static boolean |
isWarnEnabled() |
static void |
logNothing(Throwable t)
Do nothing.
|
static void |
synchronizeLog()
当通过 Constants.setLogFactory(...) 或者
LogManager.me().setDefaultLogFacotyr(...)
指定默认日志工厂以后,重置一下内部 Log 对象,以便使内部日志实现与系统保持一致
|
static void |
warn(String message) |
static void |
warn(String message,
Throwable t) |
public static void synchronizeLog()
public static void logNothing(Throwable t)
public static void debug(String message)
public static void info(String message)
public static void warn(String message)
public static void error(String message)
public static void fatal(String message)
public static boolean isDebugEnabled()
public static boolean isInfoEnabled()
public static boolean isWarnEnabled()
public static boolean isErrorEnabled()
public static boolean isFatalEnabled()
Copyright © 2018. All rights reserved.