org.tinygroup.logger
Class LoggerFactory

java.lang.Object
  extended by org.tinygroup.logger.LoggerFactory

public final class LoggerFactory
extends Object

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

Author:
luoguo

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.