The constructor implementation of this class.
The main logger of this class. This will utilizes the {@link winston} logger instance by default.
The module name used to add more clarity about the log messages that are created.
An instance of DappConfig that will be used to get necessary monitoring information for this class.
Method to return a list of {@link WinstonsTransport} according to current existing MonitoringConfig values.
Write a 'debug' level log. This method prints a log
message with level "debug"
.
The debug message.
Write an 'error' level log. This method prints a log
message with level "error"
.
The error message.
Getter method to retrieve either the module or the context.
Write a 'log' level log. This method prints a log
message with level "info"
.
The log message.
Set the optional context which is prepended to the log message for any level.
Set log levels.
The log level values.
Set the optional module which is prepended as well to the
log message for any level.
The module is used to indicate clearly which combination of
scope and command is being executed, e.g. discovery/DiscoverBlocks
.
A module name, e.g. discovery/DiscoverAccounts
.
This method serves to initialize the logger instance. Note that the LogService.context field may be changed and requires a reset of the logger instance.
Write a 'verbose' level log. This method prints a log
message with level "debug"
.
The verbose message.
Write a 'warn' level log. This method prints a log
message with level "warn"
.
The warn message.
Generated using TypeDoc
This class serves as a common logging service application-wide.
Initialize and use the LogService in another class
v0.3.2