feat(eventlog) initialize event logger with silent defaults

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow 2014-11-16 13:14:29 -08:00 committed by Juan Batiz-Benet
parent bacf3ecc6a
commit aba4b2bde4

View File

@ -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) {