Commit aba4b2bd authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

feat(eventlog) initialize event logger with silent defaults

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent bacf3ecc
......@@ -2,11 +2,20 @@ package eventlog
import (
"io"
"os"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/maybebtc/logrus"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/gopkg.in/natefinch/lumberjack.v2"
)
func init() {
Configure(TextFormatter)
Configure(Output(os.Stderr))
// has the effect of disabling logging since we log event entries at Info
// level by convention
Configure(LevelError)
}
type Option func()
func Configure(options ...Option) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment