diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-31 14:47:14 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-31 14:47:14 +0800 |
commit | fb6b5b74df451f943190f6c757e6f9de04cce7ab (patch) | |
tree | a714cd0006c6a866ccc11bc6380a1f701358a154 | |
parent | 6392802d696a228250cce7f9ddeaca8f6fb92b29 (diff) |
jimbrella.web keeps log
-rw-r--r-- | jimbrella/web.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jimbrella/web.py b/jimbrella/web.py index 9db37ef..dda2d9f 100644 --- a/jimbrella/web.py +++ b/jimbrella/web.py @@ -1,8 +1,12 @@ +import logging from flask import Flask from .admin import bp as admin_bp from .auth import bp as auth_bp from .config import * +# this logger is shared across modules +logging.basicConfig(filename=LOG_PATH, encoding="utf-8", level=logging.DEBUG) + app = Flask("jimbrella") app.secret_key = FLASK_SECRET_KEY app.register_blueprint(admin_bp) |