org.tinygroup.logger
Class LoggerFactory
java.lang.Object
org.tinygroup.logger.LoggerFactory
public final class LoggerFactory
- extends Object
日志工厂,用于获取Logger实例。
- Author:
- luoguo
| Methods inherited from class 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–2015 TinyGroup. All rights reserved.