logging test

This commit is contained in:
2000-Trek 2023-06-23 18:57:30 +02:00
parent 9ba5abb7f7
commit 311dab3797

View file

@ -21,6 +21,7 @@ socketio = SocketIO(app)
logging.basicConfig(filename='matekasse.log', encoding='utf-8', level=logging.INFO)
db_log = logging.getLogger('db')
db_consol_handler = logging.StreamHandler()
db_consol_handler.setLevel(logging.INFO)
db_consol_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
db_log.addHandler(db_consol_handler)
website_log = logging.getLogger('website')