more complexity in the test conf
This commit is contained in:
@@ -1,25 +1,8 @@
|
||||
import logging
|
||||
import logging.config
|
||||
from pathlib import Path
|
||||
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
|
||||
class HelloWorld(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'Initialized app from {__file__}')
|
||||
|
||||
# logging.config.dictConfig(
|
||||
# {
|
||||
# 'version': 1,
|
||||
# 'disable_existing_loggers': False,
|
||||
# 'formatters': {'basic': {'style': '{', 'format': '{message}'}},
|
||||
# 'handlers': {'rich': {'()': 'rich.logging.RichHandler'}},
|
||||
# 'loggers': {
|
||||
# 'AppDaemon._app_management': {
|
||||
# 'level': 'DEBUG',
|
||||
# 'propagate': False,
|
||||
# 'handlers': ['rich'],
|
||||
# }
|
||||
# },
|
||||
# }
|
||||
# )
|
||||
self.log(f'Initialized app from {Path(__file__).relative_to(self.AD.app_dir.parent)}')
|
||||
|
||||
Reference in New Issue
Block a user