Created
September 8, 2016 09:16
-
-
Save iorionda/df24542e8db1713bac0e1ccfe996145a to your computer and use it in GitHub Desktop.
heroku で logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import logging | |
from flask import Flask | |
app = Flask(__name__) | |
app.logger.addHandler(logging.StreamHandler(sys.stdout)) | |
app.logger.setLevel(logging.ERROR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment