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

Write messages to log file #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcocaberletti
Copy link

I write a simple solution for the issue #28.
Basically:

  • Add some log option in settings;
  • Replace print_message with log calls;
  • "--debug" option now overrides log level with DEBUG value and adds a handler for write log message both on file and console.

Add log_file and log_level parameters in settings.
Edit script to use log file.
Modify --debug option behavior.
Replace print_message with logger.
@ableev
Copy link
Owner

ableev commented Mar 9, 2016

Hi, @marcocaberletti.
Thank you for you pull request.
I will test and review it.

@victorhugopa
Copy link

Any news?

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.

None yet

3 participants