/
logger.go
35 lines (26 loc) · 938 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
30
31
32
33
34
35
package logging
// Logger is an Interface for logging messages in unified way
type Logger interface {
// DebugEnabled returns true if the debug level is enabled.
DebugEnabled() bool
// InfoEnabled returns true if the information level is enabled.
InfoEnabled() bool
// Info prints an formatted output message
// using fmt.Fprint function
Info(args ...interface{})
// Error prints an formatted error message
// using fmt.Fprint function
Error(args ...interface{})
// Infof prints an formatted output message
// using fmt.Fprintf function
Infof(format string, args ...interface{})
// Errorf prints an formatted error message
// using fmt.Fprintf function
Errorf(format string, args ...interface{})
// Infoln prints an formatted output message
// using fmt.Fprintln function
Infoln(args ...interface{})
// Errorln prints an formatted error message
// using fmt.Fprintln function
Errorln(args ...interface{})
}