public class LogManager extends Object
LogResolver implementation manager. By using LogResolver, getLogger(Class) returns a ILog implementation. This module use this class as the main entrance,
and block the implementation detail about log-component. In different modules, like server or sniffer, it will use
different implementations.
If no LogResolver is registered, return NoopLogger.INSTANCE to avoid
NullPointerException. If setLogResolver(LogResolver) is called twice, the second will
override the first without any warning or exception.
Created by xin on 2016/11/10.
| Constructor and Description |
|---|
LogManager() |
| Modifier and Type | Method and Description |
|---|---|
static ILog |
getLogger(Class<?> clazz) |
static ILog |
getLogger(String clazz) |
static void |
setLogResolver(LogResolver resolver) |
public static void setLogResolver(LogResolver resolver)
Copyright © 2019 The Apache Software Foundation. All rights reserved.