Creates a new instance of the logger.
Composes an human-readable error description
an error to format.
a human-reable error description.
Configures component by passing configuration parameters.
configuration parameters to be set.
Logs a high-level debug information for troubleshooting.
(optional) transaction id to trace execution through call chain.
a human-readable message to log.
arguments to parameterize the message.
Logs recoverable application error.
(optional) transaction id to trace execution through call chain.
an error object associated with this message.
a human-readable message to log.
arguments to parameterize the message.
Logs fatal (unrecoverable) message that caused the process to crash.
(optional) transaction id to trace execution through call chain.
an error object associated with this message.
a human-readable message to log.
arguments to parameterize the message.
Formats the log message and writes it to the logger destination.
a log level.
(optional) transaction id to trace execution through call chain.
an error object associated with this message.
a human-readable message to log.
arguments to parameterize the message.
Gets the maximum log level. Messages with higher log level are filtered out.
the maximum log level.
Gets the source (context) name.
the source (context) name.
Logs an important information message
(optional) transaction id to trace execution through call chain.
a human-readable message to log.
arguments to parameterize the message.
Logs a message at specified log level.
a log level.
(optional) transaction id to trace execution through call chain.
an error object associated with this message.
a human-readable message to log.
arguments to parameterize the message.
Set the maximum log level.
a new maximum log level.
Sets references to dependent components.
references to locate the component dependencies.
Sets the source (context) name.
a new source (context) name.
Logs a low-level debug information for troubleshooting.
(optional) transaction id to trace execution through call chain.
a human-readable message to log.
arguments to parameterize the message.
Logs a warning that may or may not have a negative impact.
(optional) transaction id to trace execution through call chain.
a human-readable message to log.
arguments to parameterize the message.
Writes a log message to the logger destination.
a log level.
(optional) transaction id to trace execution through call chain.
an error object associated with this message.
a human-readable message to log.
Generated using TypeDoc
Logger that writes log messages to console.
Errors are written to standard err stream and all other messages to standard out stream.
Configuration parameters
References
*:context-info:*:*:1.0
(optional) ContextInfo to detect the context id and specify counters sourceLogger
Example
let logger = new ConsoleLogger(); logger.setLevel(LogLevel.debug); logger.error("123", ex, "Error occured: %s", ex.message); logger.debug("123", "Everything is OK.");