A possible enhancement to this package would be to use python logging for output and logging errors etc. instead of using print. Logging allows you to:
- See when and where in the code a logging call has been made
- Assign categories to messages which the user can configure what to output/not (great for debugging)
- Can configure output from the module to be sent to specific files - great when running on a remote machine
- Can configure messages to be sent straight to stdout and stderr (print doesn't do this immediately unless you run the script with the
python -u option.
I am new to logging myself, but it appears to be a much better way of logging messages within a large python package than print() (which doesn't give much info about where it came from etc.)
Maybe someone with more knowledge on this could implement it?
A possible enhancement to this package would be to use python logging for output and logging errors etc. instead of using print. Logging allows you to:
python -uoption.I am new to logging myself, but it appears to be a much better way of logging messages within a large python package than print() (which doesn't give much info about where it came from etc.)
Maybe someone with more knowledge on this could implement it?