goraft / raft

UNMAINTAINED: A Go implementation of the Raft distributed consensus protocol.
MIT License
2.43k stars 480 forks source link

Any plan to integrate with different log facilities? #226

Closed watsonjiang closed 10 years ago

watsonjiang commented 10 years ago

Hi there, I'm using goraft as a component in my application. it seems goraft internally hard-coded the golang standard 'log' pkg as log facility(debug.go), however, my application uses glog. I wonder if you have plan to integrate glog (or log4go) into goraft, this will makes it more friendly to different project.

//watson

benbjohnson commented 10 years ago

@watsonjiang There are not currently plans to make logging pluggable or change the logging infrastructure. Adding glog would add an extra dependency to go-raft that not everyone wants.