Feature #6520
openPossible to capture messages and errors to a file?
0%
Description
Using saxonche 12.5.0 from Python 3.10
I am trying to log Saxon message and error output to a file but it looks like I only get message output, with errors going to the console.
I'm using this code to configure the message handling:
executable.set_save_xsl_message(False, logger.get_log_file().as_posix());
Where my logger logs to a file.
I didn't see anything in the docs that suggested a way to also get the error output.
Is this possible?
Related issues
Updated by O'Neil Delpratt 3 months ago
- Status changed from New to AwaitingInfo
Hi Eliot,
I believe the design is to raise the errors as exceptions in python. Therefore errors can be caught with try
-except
block. If I have misunderstood your requirement or if something is not working as expected please let us know and maybe post a repo.
Updated by O'Neil Delpratt 13 days ago
- Related to Bug #6556: http://saxon.sf.net/feature/standardErrorOutputFile file is created but remains empty, errors are written to the console not the file added
Updated by Eliot Kimber 13 days ago
O'Neil,
I'll look into the use of try/catch to capture errors--it's quite possible I simply misunderstood how best to handle errors.
The use of SaxonC in Python is not a priority for us at the moment but I'll keep this in mind when I return to it.
Updated by O'Neil Delpratt 4 days ago
- Status changed from AwaitingInfo to In Progress
- Assignee set to O'Neil Delpratt
Please register to edit this issue