apache / apache/pulsar-client-go
ClientOptions should get a Logger field to allow injecting of an external Logger
- Dominant language
- Go
- Stars
- 745
- Forks
- 389
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 3
Description
It is available in the old cgo based go client library:
```
// Provide a custom logger implementation where all Pulsar library info/warn/error messages will be routed
// By default, log messages will be printed on standard output. By passing a logger function, application
// can determine how to print logs. This function will be called each time the Pulsar client library wants
// to write any logs.
Logger func(level log.LoggerLevel, file string, line int, message string)
```
Contributor guide
Research direction
Start at the Go client's ClientOptions entry point and trace how library log messages are currently emitted. Compare the requested Logger signature with the old cgo client behavior; done means callers can inject an external logger that receives Pulsar library messages while the default logging behavior remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100