logger: support per-client config
Opened this issue · 0 comments
Yury-Fridlyand commented
Describe the feature
Currently, logger config (level and destination) is global. A user may want to create multiple client instances with different logging parameters.
Use Case
var logConfig1 = new LogConfig(LogLevel.ERROR, "/path/to/file");
var logConfig2 = new LogConfig(LogLevel.INFO, null); // log to stdout
var client1 = new Client(logConfig1);
var client2 = new Client(logConfig2);
In that case, [rust core lib] logs produced by both clients will be dumped to stdout with INFO level. Wrepper logs though could be generated on different levels and distributed to different destinations.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Client version used
No response
Environment details (OS name and version, etc.)
No response