Logger
Hierarchy
- Contract<LoggerOptions>
- Logger
Index
Constructors
constructor
Properties
readonlyoptions
Methods
blueprint
configure
Set an options object by merging the new partial and existing options with the defined blueprint, while running all validation checks. Freeze and return the options object.
object.configure({ name: 'Boost' });
object.configure((prevOptions) => ({
nestedObject: {
...prevOptions.nestedObject,
some: 'value',
},
}));
disable
Disable all logger messages from logging to the console.
enable
Enable all logger messages to log the console.
Validated and configured options.