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 functionality #96

Open
jcass77 opened this issue Feb 10, 2017 · 0 comments
Open

Add logging functionality #96

jcass77 opened this issue Feb 10, 2017 · 0 comments

Comments

@jcass77
Copy link
Contributor

jcass77 commented Feb 10, 2017

I think it would be useful if stormpath-flask logged important events (e.g. new user created, passwords changed, login / logout, etc).

Users of the stormpath-flask extension could then set the logging level and add an appropriate handler with something like:

logger = logging.getLogger('stormpath')
logger.setLevel(logging.WARNING)
handler = RotatingFileHandler(my_app.config, mode='a', maxBytes=1000000, backupCount=3)
logger.addHandler(handler)
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

No branches or pull requests

1 participant