Closed jelovirt closed 3 months ago
In general it's crazy hard to programmatically parse console lines in order to gather errors, some error lines look like this "[ERROR]", some look like this "Error!", and now some look like "Error:". Same for all severity types from info/warning/fatal error.
Since the CLI default logger is intended for human consumption, it may be easier to use some other logger that will output log messages in easier to parse format.
I will need to write initial docs for using customized or alternative logger for different log use cases.
@jelovirt yes this might help, see also this discussion here:
https://github.com/orgs/dita-ot/discussions/4340
There are various places from where errors may arise: SAX Parser, XSLT stylesheets, DITA OT code, Apache FOP.
Description
Fix missing log level prefix
Error:
orWarning:
when not using colours in CLI.Motivation and Context
Fixes #4406
How Has This Been Tested?
Manual testing.
Type of Changes