Abstract
Constructor
defaults to Warn
Optional
chainedLogger: null | ILoggerServiceReference to another ILoggerService implementation that gets called after the console's logging.
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.
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.
Protected
Abstract
getSupplies the logOptions used in the callbacks.
Protected
Abstract
writeDirects the data in logDetails to the actual logging destination.
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
Base class for Logger services. This class is abstract and should be extended to provide a concrete implementation.