Skip to content
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.

Create a logging helper class #32

Open
arthurazs opened this issue Dec 26, 2017 · 1 comment
Open

Create a logging helper class #32

arthurazs opened this issue Dec 26, 2017 · 1 comment
Assignees
Labels

Comments

@arthurazs
Copy link
Owner

arthurazs commented Dec 26, 2017

This is an ideia.

Description

Create a helper class to manage the app's logging.

Example:

def _critical(self, msg, err):
    self.logger.error(msg)
    self.logger.critical('{}: {}'.format(err.__class__.__name__, err))
    raise SystemExit(-1)

This is from model.py but could be used by other classes as well.

@arthurazs arthurazs self-assigned this Dec 26, 2017
@arthurazs
Copy link
Owner Author

Add DEBUG

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant