Skip to content

Instantly share code, notes, and snippets.

@aphillipo
Created October 14, 2014 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aphillipo/25ae5456cf1fe7fed1a5 to your computer and use it in GitHub Desktop.
Save aphillipo/25ae5456cf1fe7fed1a5 to your computer and use it in GitHub Desktop.
flask_handler = RotatingFileHandler('log/flask.log', maxBytes=100000, backupCount=1)
flask_handler.setFormatter(formatter)
flask_handler.setLevel(logging.INFO)
app.logger.addHandler(flask_handler)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment