-
Notifications
You must be signed in to change notification settings - Fork 0
/
null.go
44 lines (33 loc) · 879 Bytes
/
null.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
36
37
38
39
40
41
42
43
44
package frog
type NullLogger struct {
minLevel Level
}
func (n *NullLogger) Close() {
}
func (n *NullLogger) MinLevel() Level {
return n.minLevel
}
func (n *NullLogger) SetMinLevel(level Level) Logger {
n.minLevel = level
return n
}
func (n *NullLogger) LogImpl(level Level, msg string, fielders []Fielder, opts []PrinterOption, d ImplData) {
}
func (n *NullLogger) Transient(format string, fielders ...Fielder) Logger {
return n
}
func (n *NullLogger) Verbose(format string, fielders ...Fielder) Logger {
return n
}
func (n *NullLogger) Info(format string, fielders ...Fielder) Logger {
return n
}
func (n *NullLogger) Warning(format string, fielders ...Fielder) Logger {
return n
}
func (n *NullLogger) Error(format string, fielders ...Fielder) Logger {
return n
}
func (n *NullLogger) Log(level Level, msg string, fielders ...Fielder) Logger {
return n
}