From 38b2e7f9173e75d170e40022a68b999361ebddae Mon Sep 17 00:00:00 2001 From: SouthFox Date: Thu, 27 Jul 2023 15:16:15 +0800 Subject: [PATCH] [feat] add logger --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index ea116fb..3ded497 100644 --- a/app.py +++ b/app.py @@ -1,12 +1,20 @@ #!/usr/bin/env python3 """Creatr App""" +import sys + from flask import Flask, Response, request, Request, abort, jsonify +from loguru import logger + from demo.utils.checker import inbox_prechecker from demo.activitypub import ME from demo import config +logger.remove() +logger.add(sys.stdout, level="DEBUG") +logger.add("output.log", level="DEBUG") + app = Flask(__name__, static_folder="demo/static",)