-
Notifications
You must be signed in to change notification settings - Fork 105
/
base.go
31 lines (25 loc) · 948 Bytes
/
base.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
package logger
// Logger is an interface that allows for generic logging capabilities to be defined
// for the genesis VM. In production, this will be a nil logger, where as while
// developing or using the console, this can be altered without having to include
// the logging dependencies in the base engine.
type Logger interface {
Print(args ...interface{})
Printf(format string, args ...interface{})
Println(args ...interface{})
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Debugln(args ...interface{})
Info(args ...interface{})
Infof(format string, args ...interface{})
Infoln(args ...interface{})
Warn(args ...interface{})
Warnf(format string, args ...interface{})
Warnln(args ...interface{})
Error(args ...interface{})
Errorf(format string, args ...interface{})
Errorln(args ...interface{})
Fatal(args ...interface{})
Fatalf(format string, args ...interface{})
Fatalln(args ...interface{})
}