org.tinygroup.logger
类 LoggerFactory

java.lang.Object
  继承者 org.tinygroup.logger.LoggerFactory

public final class LoggerFactory
extends Object

日志工厂,用于获取Logger实例。

作者:
luoguo

方法摘要
static void clearAllLoggers()
          移除保存在日志工厂类中的日志对象
 org.slf4j.ILoggerFactory getILoggerFactory()
           
static Logger getLogger(Class<?> clazz)
           
static Logger getLogger(String name)
           
static LogLevel getThreadLogLevel()
           
static Map<String,Object> getThreadVariableMap()
           
static void putThreadVariable(String key, String value)
           
static void setThreadLogLevel(LogLevel logLevel)
           
 
从类 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.