Closed lebovski closed 2 years ago
@lebovski you need to add some code for dragonboat to plumb memberlist's (the gossip library used in dragonboat) logging to the logger used by dragonboat.
you can write a logger wrapper for memberlist and specify it here - https://github.com/hashicorp/memberlist/blob/619135cdd9e5dda8c12f8ceef39bdade4f5899b6/config.go#L212
this logger should just pass all logging info to your above loggerWrap used in dragonboat.
Any chance you can help to look into the problem and send a PR? Will really appreciate that.
I prepared pr, please review: https://github.com/lni/dragonboat/pull/217
already resolved #217
In order to transfer my logger to dragonboat I use logger.SetLoggerFactory, but the gossip service keeps writing logs to stdout.
Dragonboat version
v3.3.4
Expected behavior
Logs from gossip written to my logger.
Actual behavior
Logs from gossip written to stdout.
Steps to reproduce the behavior
Simple example of wrapper code:
In this example all logs is ignored, but gossip write logs to stdout.