Add logging timestamps

This commit is contained in:
Edward Brown 2023-08-30 17:57:35 +01:00
parent a48b538cf1
commit ed5685bac8

View file

@ -4,7 +4,7 @@ import logging
from haco import constants, tuya
from haco.tasmota import Tasmota
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
logger = logging.getLogger(__name__)