Skip to content

Commit 53b51f3

Browse files
authored
Update main.py
1 parent 65d5b0f commit 53b51f3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

main.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
import logging
12
from command_center import CommandCenter as cc
23

4+
# sets up err.log for file handling
5+
handler = logging.FileHandler(
6+
encoding="utf-8",
7+
filename="deucalion_err.log",
8+
mode="w"
9+
)
10+
11+
# determines how the log will be formatted
12+
handler.setFormatter(logging.Formatter("%(asctime)s : %(levelname)s : %(name)s : %(message)s"))
13+
14+
logger = logging.getLogger("file manager")
15+
logger.setLevel(logging.DEBUG)
16+
logger.addHandler(handler)
17+
318
class Deucalion():
419
"""
520
"""

0 commit comments

Comments
 (0)