• qiuqunfeng's avatar
    Implement dynamic log level configuration and refactor Elasticsearch client creation · 5f22de38
    qiuqunfeng authored
    This update introduces the ability to set the log level dynamically based on the LOG_LEVEL environment variable, allowing for better control over logging verbosity. Additionally, the Elasticsearch client creation has been refactored to utilize configuration settings from a JSON file, enhancing the application's configurability. The previous LoadConfig function has been replaced with a more structured approach, and unnecessary code has been removed to streamline the log consumer service.
    5f22de38
log_consumer.go 5.25 KB