github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/state/watcher/logger.go (about)

     1  // Copyright 2017 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package watcher
     5  
     6  // Logger represents methods called by this package to a logging
     7  // system.
     8  type Logger interface {
     9  	Warningf(format string, values ...interface{})
    10  	Infof(format string, values ...interface{})
    11  	Debugf(format string, values ...interface{})
    12  	Tracef(format string, values ...interface{})
    13  }
    14  
    15  type noOpLogger struct{}
    16  
    17  func (noOpLogger) Warningf(format string, values ...interface{}) {}
    18  func (noOpLogger) Infof(format string, values ...interface{})    {}
    19  func (noOpLogger) Debugf(format string, values ...interface{})   {}
    20  func (noOpLogger) Tracef(format string, values ...interface{})   {}