mincong-h / finance-toolkit

Finance Toolkit
3 stars 1 forks source link

Add logging for Finance Toolkit #64

Closed mincong-h closed 2 years ago

mincong-h commented 2 years ago

Description

Make it possible to debug Finance Toolkit using short option -X or long option --debug to show debug logs. This is inspired from Maven's debug options -X,--debug.

See help command for more details:

./bin/docker-finance.sh --help
Finance Tools

Usage:
  finance-toolkit [options] (cat|categories) [<prefix>]
  finance-toolkit [options] merge
  finance-toolkit [options] move

Arguments:
  cat|categories   Print all categories, or categories starting with the given prefix.
  merge            Merge staging data.
  move             Import data from $HOME/Downloads directory.

Options:
  --finance-root FOLDER    Folder where the configuration file is stored (default: $HOME/finances).
  -X --debug               Enable debugging logs. Default: false.

References

https://realpython.com/python-logging/