-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow users to pass in their own logger.
For making raft log to github.com/golang/glog, it is necessary to specify a custom logger, because glog expects you to set the Lshortfile flag. Aside from this specific example, I think in general it’s better to give users more control over the logger instead of creating it for the user — after all, it’s still just a single line of code.
- Loading branch information
Michael Stapelberg
committed
Jan 22, 2015
1 parent
febcccb
commit 723d32f
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters