public final class LoggerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_EVENTID |
static String |
SERVICE_SERVICEID |
Modifier and Type | Method and Description |
---|---|
static void |
clearAllLoggers()
移除保存在日志工厂类中的日志对象
|
static void |
clearThreadLocal() |
static Map<String,String> |
getGlobalMdcMap() |
org.slf4j.ILoggerFactory |
getILoggerFactory() |
static Logger |
getLogger(Class<?> clazz) |
static Logger |
getLogger(String name) |
static LogLevel |
getThreadLogLevel() |
static Map<String,String> |
getThreadRpcVariableMap() |
static Map<String,String> |
getThreadVariableMap() |
static void |
putGlobalMdc(String key,
String value) |
static void |
putRpcVariableKey(String key) |
static void |
putThreadVariable(String key,
String value) |
static void |
removeThreadVariable(String key) |
static void |
setThreadLogLevel(LogLevel logLevel) |
public static final String SERVICE_SERVICEID
public static final String SERVICE_EVENTID
public static void removeThreadVariable(String key)
public static LogLevel getThreadLogLevel()
public static void setThreadLogLevel(LogLevel logLevel)
public static void clearThreadLocal()
public static void clearAllLoggers()
public static void putRpcVariableKey(String key)
public org.slf4j.ILoggerFactory getILoggerFactory()
Copyright © 2006–2018 TinyGroup. All rights reserved.