-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger.go
More file actions
22 lines (17 loc) · 853 Bytes
/
logger.go
File metadata and controls
22 lines (17 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package ratatoskr
import yggcore "github.com/yggdrasil-network/yggdrasil-go/src/core"
// // // // // // // // // //
// noopLoggerObj — logger stub that discards all messages
type noopLoggerObj struct{}
var _ yggcore.Logger = noopLoggerObj{}
func (noopLoggerObj) Printf(string, ...interface{}) {}
func (noopLoggerObj) Println(...interface{}) {}
func (noopLoggerObj) Infof(string, ...interface{}) {}
func (noopLoggerObj) Infoln(...interface{}) {}
func (noopLoggerObj) Warnf(string, ...interface{}) {}
func (noopLoggerObj) Warnln(...interface{}) {}
func (noopLoggerObj) Errorf(string, ...interface{}) {}
func (noopLoggerObj) Errorln(...interface{}) {}
func (noopLoggerObj) Debugf(string, ...interface{}) {}
func (noopLoggerObj) Debugln(...interface{}) {}
func (noopLoggerObj) Traceln(...interface{}) {}