geniusjoe opened a new pull request, #1449: URL: https://github.com/apache/pulsar-client-go/pull/1449
Master Issue: https://github.com/apache/pulsar-client-go/pull/1234 ### Motivation The `log/slog` package, introduced in Go 1.21 has become the standard library for structured logging, which provides support for redirecting logs to files and enabling log rotation. Additionally, since pulsar default logger uses `log.NewLoggerWithLogrus(logrus.StandardLogger())`, logs cannot be output to the files when users haven't set up logrus explicit configuration. Therefore, maybe we should use `slog` and give a complete log settings in our examples to enhance the out-of-the-box experience for users. ### Modifications Update log initialization configurations in example folders. ### Verifying this change - [x] Make sure that the change passes the CI checks. This change is a trivial rework without any test coverage. ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (no) - The public API: (no) - The schema: (no) - The default values of configurations: (no) - The wire protocol: (no) ### Documentation - Does this pull request introduce a new feature? (no) -- 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]
