forked from bton/matekasse
Log path and name
This commit is contained in:
parent
f45b1aa192
commit
f38d2a145e
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue