stormpath-flask icon indicating copy to clipboard operation
stormpath-flask copied to clipboard

Add logging functionality

Open jcass77 opened this issue 8 years ago • 0 comments

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)

jcass77 avatar Feb 10 '17 11:02 jcass77