Add an option of logging into a file
This commit is contained in:
1 parent
cd71f676ca
commit
36ed913ce8
3 files changed
+18
-6
No files matched your search
@@ -14,7 +14,7 @@ from typing import (
|
||||
)
|
||||
|
||||
from version import __version__
|
||||
from constants import WS_TOPICS_LIMIT, MAX_WEBSOCKETS, State
|
||||
from constants import FORMATTER, WS_TOPICS_LIMIT, MAX_WEBSOCKETS, State
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from twitch import Twitch
|
||||
@@ -687,9 +687,7 @@ class GUIManager:
|
||||
root.minsize(width=0, height=root.winfo_reqheight())
|
||||
# register logging handler
|
||||
handler = TKOutputHandler(self)
|
||||
handler.setFormatter(
|
||||
logging.Formatter("{asctime}: {levelname}: {message}", style='{', datefmt="%H:%M:%S")
|
||||
)
|
||||
handler.setFormatter(FORMATTER)
|
||||
logging.getLogger("TwitchDrops").addHandler(handler)
|
||||
|
||||
# https://stackoverflow.com/questions/56329342/tkinter-treeview-background-tag-not-working
|
||||
|
||||
Reference in new issue
Block a user