public class LogManager
extends java.lang.Object
LoggerConfig
json. and provide appropriate destination logger like Logger,
Logger}| Constructor and Description |
|---|
LogManager() |
| Modifier and Type | Method and Description |
|---|---|
LoggerConfig |
getConfiguration()
Getter for the field
configuration. |
DestinationLoggerStore |
getDestinationLoggerStore()
Getter for the field
destinationLoggerStore. |
Logger |
getLogger(java.lang.String loggerName)
getLogger.
|
Logger |
getRootLogger()
Getter for the field
rootLogger. |
void |
init(LoggerConfig configuration,
DestinationLoggerStore destinationLoggerStore)
A method which configures the given
LoggerConfig instance and
DestinationLoggerStore. |
void |
setDestinationLoggerStore(DestinationLoggerStore destinationLoggerStore)
Setter for the field
destinationLoggerStore. |
void |
setRootLogger(Logger rootLogger)
Setter for the field
rootLogger. |
public Logger getLogger(java.lang.String loggerName)
getLogger.
loggerName - a String object.Logger object.public Logger getRootLogger()
Getter for the field rootLogger.
Logger object.@Inject public void setRootLogger(Logger rootLogger)
Setter for the field rootLogger.
rootLogger - a Logger object.public LoggerConfig getConfiguration()
Getter for the field configuration.
LoggerConfig object.@Inject public void init(LoggerConfig configuration, DestinationLoggerStore destinationLoggerStore)
LoggerConfig instance and
DestinationLoggerStore.configuration - instance of LoggerConfigdestinationLoggerStore - instance of DestinationLoggerStorepublic DestinationLoggerStore getDestinationLoggerStore()
Getter for the field destinationLoggerStore.
DestinationLoggerStore object.public void setDestinationLoggerStore(DestinationLoggerStore destinationLoggerStore)
Setter for the field destinationLoggerStore.
destinationLoggerStore - a DestinationLoggerStore object.Copyright © 2021. All rights reserved.