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
Configurable
ConfigException
.
Any exception that may occur into configuration process are bubbled up.
config
in interface Configurable
config
- configuration object.ConfigException
- if given configuration object is not valid.public Log getLogger(String loggerName)
LogProvider
getLogger
in interface LogProvider
loggerName
- logger name.public LogContext getLogContext()
LogProvider
getLogContext
in interface LogProvider
Copyright © 2018. All rights reserved.