log interface

This commit is contained in:
Devaev Maxim
2018-10-28 06:51:51 +03:00
parent 1f54776ce0
commit ab342111d0
12 changed files with 133 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ import asyncio
from .application import init
from .logging import get_logger
from .logging import Log
from .hid import Hid
from .atx import Atx
@@ -22,6 +23,11 @@ def main() -> None:
with gpio.bcm():
loop = asyncio.get_event_loop()
log = Log(
services=list(config["log"]["services"]),
loop=loop,
)
hid = Hid(
reset=int(config["hid"]["pinout"]["reset"]),
device_path=str(config["hid"]["device"]),
@@ -60,6 +66,7 @@ def main() -> None:
)
Server(
log=log,
hid=hid,
atx=atx,
msd=msd,