Optional
loggerConfig: string | ILoggerConfigStatic
____Static
LOG_The console.debug()
function is an alias for log.
Optional
message: anyconsole.dir does not accept multiparameters
if you log logger.dir(x,y)
y
will be ignored
Optional
item: anyOptional
options: anyUses util.inspect()
on obj
and prints the resulting string to stdout
.
This function bypasses any custom inspect()
function defined on obj
.
Optional
options: InspectOptionsPrints to stderr
with newline. Multiple arguments can be passed, with the
first used as the primary message and all additional used as substitution
values similar to printf(3)
(the arguments are all passed to util.format()
).
const code = 5;
console.error('error #%d', code);
// Prints: error #5, to stderr
console.error('error', code);
// Prints: error 5, to stderr
If formatting elements (e.g. %d
) are not found in the first string then
util.inspect()
is called on each argument and the
resulting string values are concatenated. See util.format()
for more information.
Optional
message: anyPrints to stderr
with newline. Multiple arguments can be passed, with the
first used as the primary message and all additional used as substitution
values similar to printf(3)
(the arguments are all passed to util.format()
).
const code = 5;
console.error('error #%d', code);
// Prints: error #5, to stderr
console.error('error', code);
// Prints: error 5, to stderr
If formatting elements (e.g. %d
) are not found in the first string then
util.inspect()
is called on each argument and the
resulting string values are concatenated. See util.format()
for more information.
Optional
message: anyThe console.info()
function is an alias for log.
Optional
message: anyPrints to stdout
with newline. Multiple arguments can be passed, with the
first used as the primary message and all additional used as substitution
values similar to printf(3)
(the arguments are all passed to util.format()
).
const count = 5;
console.log('count: %d', count);
// Prints: count: 5, to stdout
console.log('count:', count);
// Prints: count: 5, to stdout
See util.format()
for more information.
Optional
message: anyThe console.warn()
function is an alias for error.
Optional
message: anyWill set all outputs like, ILoggerConfig.useLoggerProcessors, ILoggerConfig.useGlobalPreLoggerFunctions to false.
Static
Readonly
__This function will be returned as console[log|warn|dir,etc] handle when the output is disabled
Yes, this is a type but it will be used as an interface ;)