org.tinygroup.logger
类 LoggerFactory
java.lang.Object
org.tinygroup.logger.LoggerFactory
public final class LoggerFactory
- extends Object
日志工厂,用于获取Logger实例。
- 作者:
- luoguo
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getILoggerFactory
public org.slf4j.ILoggerFactory getILoggerFactory()
getLogger
public static Logger getLogger(Class<?> clazz)
getLogger
public static Logger getLogger(String name)
putThreadVariable
public static void putThreadVariable(String key,
String value)
getThreadVariableMap
public static Map<String,Object> getThreadVariableMap()
getThreadLogLevel
public static LogLevel getThreadLogLevel()
setThreadLogLevel
public static void setThreadLogLevel(LogLevel logLevel)
clearAllLoggers
public static void clearAllLoggers()
- 移除保存在日志工厂类中的日志对象
Copyright © 2006–2016 TinyGroup. All rights reserved.