Use LokiHandler
This commit is contained in:
parent
2718e72a80
commit
248beeab3f
@ -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={
|
||||||
|
Loading…
Reference in New Issue
Block a user