Skip to content

Commit

Permalink
docs: add elastic as alt log backend
Browse files Browse the repository at this point in the history
看了一下,openobverse似乎更像是promethus/grafana一样的系统监控日志而非是纯日志。它和netdata作伴去吧。

elastic起码还是有一些logging可用的handler的

https://pypi.org/project/elasticsearch-logging-handler/
  • Loading branch information
LaoshuBaby committed Mar 4, 2024
1 parent 107cced commit 0e9b340
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/yuheng/basic/log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

# import logging.config

from loguru import logger as loguru_logger
Expand Down Expand Up @@ -50,8 +51,8 @@
# logger.add(sink=logging_handler_sls, format=loguru_format, **loguru_config)
# clickhouse
# logger.add(sink=logging_handler_clickhouse)
# openobserve
# logger.add(sink=logging_handler_openobserve)
# elasticsearch
# logger.add(sink=logging_handler_elasticsearch)

# logger.disable("yuheng")
logger.info("loguru enabled")

0 comments on commit 0e9b340

Please sign in to comment.