gagraler opened a new pull request, #1356:
URL: https://github.com/apache/rocketmq-clients/pull/1356

   ### Which Issue(s) This PR Fixes
   
   Fixes #1306
   
   ### Brief Description
   
   - Add a framework-neutral `Logger` interface and global `SetLogger` API.
   - Keep the existing Zap-backed logger as the default and preserve caller 
attribution and lazy formatted logging.
   - Make newly created producers and consumers inherit the configured logger 
and their `client_id` context.
   - Add a documented `log/slog` JSON adapter example.
   - Correct invalid logging format directives exposed by the new adapter.
   
   ### How Did You Test This Change?
   
   - `go build`
   - `go test -v`
   - `go test ./...`
   - `go test -race -run TestSetLoggerIsUsedByNewClients -count=1`
   - `git diff --check`
   
   Note: `go vet ./...` continues to report the existing `context.WithTimeout` 
cancel warnings in `client_manager.go` and `conn.go`; those warnings are 
present on the base commit and are outside this change.


-- 
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]

Reply via email to