Use LokiHandler

This commit is contained in:
PapaTutuWawa 2023-12-23 21:45:46 +01:00
parent 2718e72a80
commit 248beeab3f

View File

@ -8,8 +8,7 @@ def init_loki_logging(config: dict[str, str]):
"""Configures the logging to Loki.""" """Configures the logging to Loki."""
import logging_loki import logging_loki
handler = logging_loki.LokiQueueHandler( handler = logging_loki.LokiHandler(
Queue(-1),
url=config["loki"]["url"], url=config["loki"]["url"],
version="1", version="1",
tags={ tags={