mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
feat: setParseCallStackFunction(undefined) will restore the default behavior
This commit is contained in:
parent
d53495a8ab
commit
b139aafcab
@ -208,6 +208,8 @@ class Logger {
|
||||
setParseCallStackFunction(parseFunction) {
|
||||
if (typeof parseFunction === 'function') {
|
||||
this.parseCallStack = parseFunction;
|
||||
} else if (parseFunction === undefined) {
|
||||
this.parseCallStack = defaultParseCallStack;
|
||||
} else {
|
||||
throw new TypeError('Invalid type passed to setParseCallStackFunction');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user