Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging for Finance Toolkit #64

Merged
merged 7 commits into from
Jun 6, 2022
Merged

Add logging for Finance Toolkit #64

merged 7 commits into from
Jun 6, 2022

Conversation

mincong-h
Copy link
Owner

@mincong-h mincong-h commented Jun 6, 2022

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/

@mincong-h mincong-h merged commit bb2dadc into master Jun 6, 2022
@mincong-h mincong-h deleted the logging branch June 6, 2022 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant