Introduce a logging system
Five logging levels
- debug:
--debug
,-vv
- info:
--info
,-v/--verbose
- warning: always displayed, could be hidden with
--silent
- critical: always displayed
- error: always displayed
Store all this logs into logging files
$HOME/.config/silkaj/silkaj.log
- no
root
installation into/var/log/silkaj/silkaj.log
because this is not a service, but an application - log rotation?
Useful to see the sent documents.
To display send documents:
logging.info(transaction.signed_raw())