forked from bton/matekasse
logging test
This commit is contained in:
parent
9ba5abb7f7
commit
311dab3797
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue