final class DefaultLogProvider extends Object implements LogProvider
DefaultLog instances.| Modifier and Type | Field and Description |
|---|---|
private LogContext |
logContext |
| Constructor and Description |
|---|
DefaultLogProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
config(Config config)
Configure this configurable using a given configuration object.
|
LogContext |
getLogContext()
Get the instance of logger context usable to store diagnostic context data on current thread.
|
Log |
getLogger(String loggerName)
Create named logger instance.
|
private LogContext logContext
public void config(Config config) throws ConfigException
ConfigurableConfigException.
Any exception that may occur into configuration process are bubbled up.
config in interface Configurableconfig - configuration object.ConfigException - if given configuration object is not valid.public Log getLogger(String loggerName)
LogProvidergetLogger in interface LogProviderloggerName - logger name.public LogContext getLogContext()
LogProvidergetLogContext in interface LogProviderCopyright © 2018. All rights reserved.