forked from cayleygraph/cayley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glog.go
35 lines (28 loc) · 743 Bytes
/
glog.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package glog
import (
"fmt"
"github.com/cayleygraph/cayley/clog"
"github.com/golang/glog"
)
func init() {
clog.SetLogger(Logger{})
}
type Logger struct{}
func (Logger) Infof(format string, args ...interface{}) {
glog.InfoDepth(3, fmt.Sprintf(format, args...))
}
func (Logger) Warningf(format string, args ...interface{}) {
glog.WarningDepth(3, fmt.Sprintf(format, args...))
}
func (Logger) Errorf(format string, args ...interface{}) {
glog.ErrorDepth(3, fmt.Sprintf(format, args...))
}
func (Logger) Fatalf(format string, args ...interface{}) {
glog.FatalDepth(3, fmt.Sprintf(format, args...))
}
func (Logger) V(level int) bool {
return bool(glog.V(glog.Level(level)))
}
func (Logger) SetV(int) {
panic("unexposed in glog")
}