forked from firefart/gosocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.go
24 lines (21 loc) · 881 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
package socks
type Logger interface {
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
Info(args ...interface{})
Error(args ...interface{})
Errorf(format string, args ...interface{})
Warn(args ...interface{})
Warnf(format string, args ...interface{})
}
type NilLogger struct {
}
func (l *NilLogger) Debug(args ...interface{}) {}
func (l *NilLogger) Debugf(format string, args ...interface{}) {}
func (l *NilLogger) Infof(format string, args ...interface{}) {}
func (l *NilLogger) Info(args ...interface{}) {}
func (l *NilLogger) Error(args ...interface{}) {}
func (l *NilLogger) Errorf(format string, args ...interface{}) {}
func (l *NilLogger) Warn(args ...interface{}) {}
func (l *NilLogger) Warnf(format string, args ...interface{}) {}