Optional
chainedLogger: null | ILoggerServiceWhen true, add the additional details that document the results of functions as individual JSON properties. Often the same values are already in the message itself. The values will appear under the 'data' property.
Control which levels are output.
Control which levels are output.
When true, logError() adds the call stack taken from the Error object. Defaults to false.
Reference to another ILogger implementation that gets called after the console's logging. Optional. Will only be called if this logger instance has level >= minLevel or an override. Its own MinLevel will be changed to Debug because this logger expects chainedLogger to output all log entries. However, you can set the minLevel on chainedLogger after this assignment to control what it outputs.
Reference to another ILogger implementation that gets called after the console's logging. Optional. Will only be called if this logger instance has level >= minLevel or an override. Its own MinLevel will be changed to Debug because this logger expects chainedLogger to output all log entries. However, you can set the minLevel on chainedLogger after this assignment to control what it outputs.
Protected
overridesUser supplied overrides for the minLevel rule.
Protected
getSupplies the logOptions used in the callbacks.
Protected
writeUses the JSON formatting capability of console.log to output the logDetails. Expect to see the logDetails in the console in JSON.
If the log entry matches the criteria, the minimum level is overridden. Note that by adding an entry here, you are turning off lazying loading on error messages, as the lazy load function must be called to check the criteria.
Create a new log entry if the level is at or above the minimum level. The function is only called if the level is at or above the minimum level, avoiding any processing that would be done to create its data. The intent is to be performant when the log level is set to a higher level.
Protected
matchLooks through all overrideMinLevelWhens in order found. If overrideMinLevelWhen contain all matching values, it is a match and true is returned.
the log level to match.
the log details to match.
true if a match is found, false if no match is found.
Create a new log entry for an error object. It is always added, because the Error object is always LoggingLevel.Error. The Error object has most of the info needed
Generated using TypeDoc v0.25.12
Concrete implemenation of ILogger that provides logging to the Console. This is the default logger. If you want to log both to the console and another system, create both loggers, passing the other into this constructor.