SDM-TIB / SDM-RDFizer

An Efficient RML-Compliant Engine for Knowledge Graph Construction
https://doi.org/10.5281/zenodo.3872103
Apache License 2.0
107 stars 25 forks source link

[Feature] Log Errors to File #100

Closed prohde closed 1 year ago

prohde commented 1 year ago

When executing several mapping files, it can be hard to see if an error occurred in one of them. This PR adds a logger to the SDM-RDFizer. Logs of all levels are streamed to the console to keep the current output. Additionally, logs of the levels logging.ERROR and above are stored in an error log. The default path is error.log. The path of the error log can be changed by passing a second argument to the semantify() method. I didn't change all prints to use the logger; only the errors are logged so far.

eiglesias34 commented 1 year ago

I added the changes manually since I made some changes before adding the changes regarding the error log. Thank you for the help @prohde.