Use LokiHandler
This commit is contained in:
1 parent
2718e72a80
commit
248beeab3f
1 file changed
+1
-2
+1
-2
@@ -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={
|
||||||
|
|||||||
Reference in new issue
Block a user