forked from cloudfoundry/yagnats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.go
29 lines (24 loc) · 891 Bytes
/
logger.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
package yagnats
type Logger interface {
Fatal(string)
Error(string)
Warn(string)
Info(string)
Debug(string)
Fatald(map[string]interface{}, string)
Errord(map[string]interface{}, string)
Warnd(map[string]interface{}, string)
Infod(map[string]interface{}, string)
Debugd(map[string]interface{}, string)
}
type DefaultLogger struct{}
func (dl *DefaultLogger) Fatal(string) {}
func (dl *DefaultLogger) Error(string) {}
func (dl *DefaultLogger) Warn(string) {}
func (dl *DefaultLogger) Info(string) {}
func (dl *DefaultLogger) Debug(string) {}
func (dl *DefaultLogger) Fatald(map[string]interface{}, string) {}
func (dl *DefaultLogger) Errord(map[string]interface{}, string) {}
func (dl *DefaultLogger) Warnd(map[string]interface{}, string) {}
func (dl *DefaultLogger) Infod(map[string]interface{}, string) {}
func (dl *DefaultLogger) Debugd(map[string]interface{}, string) {}