forked from keybase/client
/
null.go
39 lines (31 loc) · 1.95 KB
/
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
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
package logger
import "golang.org/x/net/context"
type Null struct{}
func NewNull() *Null {
return &Null{}
}
// Verify Null fully implements the Logger interface.
var _ Logger = (*Null)(nil)
func (l *Null) Debug(format string, args ...interface{}) {}
func (l *Null) Info(format string, args ...interface{}) {}
func (l *Null) Warning(format string, args ...interface{}) {}
func (l *Null) Notice(format string, args ...interface{}) {}
func (l *Null) Errorf(format string, args ...interface{}) {}
func (l *Null) Critical(format string, args ...interface{}) {}
func (l *Null) CCriticalf(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) Fatalf(fmt string, arg ...interface{}) {}
func (l *Null) CFatalf(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) Profile(fmts string, arg ...interface{}) {}
func (l *Null) CDebugf(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) CInfof(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) CNoticef(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) CWarningf(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) CErrorf(ctx context.Context, fmt string, arg ...interface{}) {}
func (l *Null) Error(fmt string, arg ...interface{}) {}
func (l *Null) Configure(style string, debug bool, filename string) {}
func (l *Null) RotateLogFile() error { return nil }
func (l *Null) CloneWithAddedDepth(depth int) Logger { return l }
func (l *Null) SetExternalHandler(handler ExternalHandler) {}
func (l *Null) Shutdown() {}