Getting logger without category means that logger with default category is returned.
When level for such logger is set, it means that the level for the whole category gets changed: https://github.com/log4js-node/log4js-node/blob/master/lib/logger.js#L56
So, if you don't have a category-specific logger configuration, then log level for all loggers gets changed (bacause they use default category's configuration).
In our case we specify categories for our loggers but we don't use category-specific logger configurations (so, we use our default category's configuration which allows trace level). Many of our loggers use trace level to output some specific information and those messages are not visible because tsflow sets debug level for default configuration.
Another change in this PR is the usage of double quotes instead of single quotes in test script to allow to run the script on Windows.
Getting logger without category means that logger with
default
category is returned. Whenlevel
for such logger is set, it means that the level for the whole category gets changed: https://github.com/log4js-node/log4js-node/blob/master/lib/logger.js#L56 So, if you don't have a category-specific logger configuration, then log level for all loggers gets changed (bacause they usedefault
category's configuration).In our case we specify categories for our loggers but we don't use category-specific logger configurations (so, we use our
default
category's configuration which allowstrace
level). Many of our loggers usetrace
level to output some specific information and those messages are not visible becausetsflow
setsdebug
level for default configuration.Another change in this PR is the usage of double quotes instead of single quotes in
test
script to allow to run the script on Windows.