Bug #5544
closedUsing the SaxonJS.transform logLevel option sets the log level globally
100%
Description
Running the nodejs unit tests, I've noticed that setting the logLevel
transform option sets this level globally, rather than just for that transform. This is not really what we want.
Updated by Debbie Lockett over 2 years ago
- Status changed from New to In Progress
I have added logLevel
to context.fixed
. This is set for transforms using the value supplied for the logLevel
option, or defaults to the value of SaxonJS.getLogLevel()
(which has default 1, or can be set globally using SaxonJS.setLogLevel()
).
Then contextLogLevel
is added as a parameter to Diag.saxonPrint()
so that this method can determine whether the log is to be output or not. All Diag.saxonPrint()
calls for warning and processing logs should supply both "level" and "contextLogLevel" arguments, but when using Diag.saxonPrint()
for temporary internal diagnostic logs these can both be omitted.
Unit test nodejs async-trans-035
demonstrates that asynchronous transforms run in parallel can have different log levels, with expected results.
Committed to saxonjs2 and main branches.
Updated by Debbie Lockett over 2 years ago
- Status changed from In Progress to Resolved
- Fix Committed on JS Branch 2, Trunk added
Documentation updates also committed.
Updated by Norm Tovey-Walsh about 2 years ago
- Sprint/Milestone set to SaxonJS 2.5
Updated by Norm Tovey-Walsh about 2 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in JS Release set to SaxonJS 2.5
Fixed in SaxonJS 2.5.
Please register to edit this issue
Also available in: Atom PDF Tracking page