[feat] add logger
This commit is contained in:
parent
ccaa753f79
commit
38b2e7f917
1 changed files with 8 additions and 0 deletions
8
app.py
8
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",)
|
||||
|
||||
|
|
Loading…
Reference in a new issue