github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/logger/null.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  package logger
     5  
     6  import "golang.org/x/net/context"
     7  
     8  type Null struct{}
     9  
    10  func NewNull() *Null {
    11  	return &Null{}
    12  }
    13  
    14  // Verify Null fully implements the Logger interface.
    15  var _ Logger = (*Null)(nil)
    16  
    17  func (l *Null) Debug(format string, args ...interface{})                       {}
    18  func (l *Null) Info(format string, args ...interface{})                        {}
    19  func (l *Null) Warning(format string, args ...interface{})                     {}
    20  func (l *Null) Notice(format string, args ...interface{})                      {}
    21  func (l *Null) Errorf(format string, args ...interface{})                      {}
    22  func (l *Null) Critical(format string, args ...interface{})                    {}
    23  func (l *Null) CCriticalf(ctx context.Context, fmt string, arg ...interface{}) {}
    24  func (l *Null) Fatalf(fmt string, arg ...interface{})                          {}
    25  func (l *Null) CFatalf(ctx context.Context, fmt string, arg ...interface{})    {}
    26  func (l *Null) Profile(fmts string, arg ...interface{})                        {}
    27  func (l *Null) CDebugf(ctx context.Context, fmt string, arg ...interface{})    {}
    28  func (l *Null) CInfof(ctx context.Context, fmt string, arg ...interface{})     {}
    29  func (l *Null) CNoticef(ctx context.Context, fmt string, arg ...interface{})   {}
    30  func (l *Null) CWarningf(ctx context.Context, fmt string, arg ...interface{})  {}
    31  func (l *Null) CErrorf(ctx context.Context, fmt string, arg ...interface{})    {}
    32  func (l *Null) Error(fmt string, arg ...interface{})                           {}
    33  func (l *Null) Configure(style string, debug bool, filename string)            {}
    34  
    35  func (l *Null) CloneWithAddedDepth(depth int) Logger { return l }
    36  
    37  func (l *Null) SetExternalHandler(handler ExternalHandler) {}
    38  func (l *Null) Shutdown()                                  {}