-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscard.go
39 lines (31 loc) · 2.11 KB
/
discard.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
package lilog
import "context"
type Discard struct {
}
var _ Logger = &Discard{}
func (d *Discard) Trace(msg string, fields ...interface{}) {}
func (d *Discard) TraceContext(ctx context.Context, msg string, fields ...interface{}) {}
func (d *Discard) TraceArgs(args map[string]interface{}, msg string, fields ...interface{}) {}
func (d *Discard) TraceContextArgs(ctx context.Context, args map[string]interface{}, msg string, fields ...interface{}) {
}
func (d *Discard) Debug(msg string, fields ...interface{}) {}
func (d *Discard) DebugContext(ctx context.Context, msg string, fields ...interface{}) {}
func (d *Discard) DebugArgs(args map[string]interface{}, msg string, fields ...interface{}) {}
func (d *Discard) DebugContextArgs(ctx context.Context, args map[string]interface{}, msg string, fields ...interface{}) {
}
func (d *Discard) Info(msg string, fields ...interface{}) {}
func (d *Discard) InfoContext(ctx context.Context, msg string, fields ...interface{}) {}
func (d *Discard) InfoArgs(args map[string]interface{}, msg string, fields ...interface{}) {}
func (d *Discard) InfoContextArgs(ctx context.Context, args map[string]interface{}, msg string, fields ...interface{}) {
}
func (d *Discard) Warn(msg string, fields ...interface{}) {}
func (d *Discard) WarnContext(ctx context.Context, msg string, fields ...interface{}) {}
func (d *Discard) WarnArgs(args map[string]interface{}, msg string, fields ...interface{}) {}
func (d *Discard) WarnContextArgs(ctx context.Context, args map[string]interface{}, msg string, fields ...interface{}) {
}
func (d *Discard) Error(err error, msg string, fields ...interface{}) {}
func (d *Discard) ErrorContext(ctx context.Context, err error, msg string, fields ...interface{}) {}
func (d *Discard) ErrorArgs(args map[string]interface{}, err error, msg string, fields ...interface{}) {
}
func (d *Discard) ErrorContextArgs(ctx context.Context, err error, args map[string]interface{}, msg string, fields ...interface{}) {
}