diff options
Diffstat (limited to 'log/interface.go')
-rw-r--r-- | log/interface.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/log/interface.go b/log/interface.go new file mode 100644 index 0000000..5949070 --- /dev/null +++ b/log/interface.go | |||
@@ -0,0 +1,23 @@ | |||
1 | package log | ||
2 | |||
3 | type BasicLogger interface { | ||
4 | Print(i ...interface{}) | ||
5 | Printf(format string, args ...interface{}) | ||
6 | Fatal(i ...interface{}) | ||
7 | Fatalf(format string, args ...interface{}) | ||
8 | Panic(i ...interface{}) | ||
9 | Panicf(format string, args ...interface{}) | ||
10 | } | ||
11 | |||
12 | type LeveledLogger interface { | ||
13 | BasicLogger | ||
14 | |||
15 | Debug(i ...interface{}) | ||
16 | Debugf(format string, args ...interface{}) | ||
17 | Info(i ...interface{}) | ||
18 | Infof(format string, args ...interface{}) | ||
19 | Warn(i ...interface{}) | ||
20 | Warnf(format string, args ...interface{}) | ||
21 | Error(i ...interface{}) | ||
22 | Errorf(format string, args ...interface{}) | ||
23 | } | ||