This commit is contained in:
2000-Trek 2023-06-23 19:03:39 +02:00
parent 48c8630f7e
commit 4cdcf5effa

View file

@ -18,16 +18,9 @@ Session(app)
socketio = SocketIO(app)
#logging_config
logging.basicConfig(filename='matekasse.log', encoding='utf-8', level=logging.INFO)
logging.basicConfig(filename='matekasse.log',filemode='w', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ,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')
website_consol_handler = logging.StreamHandler()
website_consol_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
website_log.addHandler(website_consol_handler)
#var
status = True