mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
chore: check category.enableCallStack when config
This commit is contained in:
parent
9d1e325238
commit
b5e7db28fc
@ -108,6 +108,14 @@ configuration.addListener((config) => {
|
||||
`category "${name}" is not valid (appenders must contain at least one appender name)`
|
||||
);
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(category, 'enableCallStack')) {
|
||||
configuration.throwExceptionIf(
|
||||
config,
|
||||
typeof category.enableCallStack !== 'boolean',
|
||||
`category "${name}" is not valid (enableCallStack must be boolean type)`
|
||||
);
|
||||
}
|
||||
|
||||
category.appenders.forEach((appender) => {
|
||||
configuration.throwExceptionIf(
|
||||
config,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user