1
0
Fork 0
forked from bton/matekasse

Log path and name

This commit is contained in:
2000-Trek 2023-06-23 19:49:49 +02:00
parent f45b1aa192
commit f38d2a145e

View file

@ -18,7 +18,8 @@ Session(app)
socketio = SocketIO(app)
#logging_config
logging.basicConfig(filename=f"matekasse-{datetime.datetime.now()}.log",filemode='w', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ,encoding='utf-8', level=logging.INFO)
now = datetime.datetime.now().strftime('%d-%m-%Y-%H-%M-%S')
logging.basicConfig(filename=f"logs/matekasse-{now}.log",filemode='w', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ,encoding='utf-8', level=logging.INFO)
db_log = logging.getLogger('db')
website_log = logging.getLogger('website')