zqr10159 opened a new pull request, #3895: URL: https://github.com/apache/hertzbeat/pull/3895
This pull request updates the logging configuration for both the collector and startup modules to improve log handling and performance. The main changes involve switching to an asynchronous console appender setup and ensuring that logs are properly routed in production and cluster environments. **Logging configuration improvements:** * Replaced the direct `ConsoleAppender` with a raw console appender called `CONSOLE_RAW` in both `hertzbeat-collector-collector` and `hertzbeat-startup` logback configurations. [[1]](diffhunk://#diff-1dfca83070af21898b25cceb37212dbea42598b5b21fba15e9ef4477fbb25685L21-R21) [[2]](diffhunk://#diff-0d71b7bbf7093e521b91277397094bf853ebd22687cec842eaead1a56455330eL21-R34) * Introduced a new asynchronous console appender (`ConsoleAppender`) that wraps `CONSOLE_RAW` using `AsyncAppender` for better log throughput and non-blocking log writes. [[1]](diffhunk://#diff-1dfca83070af21898b25cceb37212dbea42598b5b21fba15e9ef4477fbb25685R30-R36) [[2]](diffhunk://#diff-0d71b7bbf7093e521b91277397094bf853ebd22687cec842eaead1a56455330eL21-R34) **Environment-specific logging setup:** * Updated production and cluster environment profiles to explicitly reference the new asynchronous `ConsoleAppender`, ensuring logs are output to the console as intended. [[1]](diffhunk://#diff-1dfca83070af21898b25cceb37212dbea42598b5b21fba15e9ef4477fbb25685R104-R112) [[2]](diffhunk://#diff-0d71b7bbf7093e521b91277397094bf853ebd22687cec842eaead1a56455330eR123) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
