Add logger for the virtual pad #41

MDL29/JacoBot#29
This commit is contained in:
Romain 2024-04-23 17:02:22 +02:00
parent 7e016819dc
commit df30c40deb
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,4 @@
import logging
# Logger config
logging.basicConfig(format="%(asctime)s %(levelname)s %(message)s", datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO)

View File

@ -1,5 +1,6 @@
import arcade
import jacovirt.logger
import logging
# Screen title and size
SCREEN_TITLE = "Jaco Pad"
@ -11,7 +12,6 @@ SCREEN_HEIGHT = int(1000* SCREEN_MULTILPLIER)
BACKGROUND_COLOR = (133, 100, 100)
class Pad(arcade.Window):
"""Main application class"""
@ -23,6 +23,7 @@ class Pad(arcade.Window):
def setup(self):
"""Set up the pad"""
logging.info("Set up the pad.")
...
def on_draw(self):