Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
heroku で logging
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