mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
ignoring app.log
This commit is contained in:
parent
33c5c008aa
commit
c7ab0f00c2
2 changed files with 7 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
*.db
|
||||
log.app
|
||||
|
||||
.idea/
|
||||
.vscode/
|
||||
|
|
|
|||
6
main.py
6
main.py
|
|
@ -12,6 +12,12 @@ from database import init_db
|
|||
|
||||
global_logger = logging.getLogger()
|
||||
global_logger.setLevel(logging.INFO)
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||
filename='app.log',
|
||||
encoding='utf-8'
|
||||
)
|
||||
handler = logging.StreamHandler()
|
||||
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
handler.setFormatter(formatter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue