-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.go
45 lines (38 loc) · 1.69 KB
/
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
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2022-present ccpaging <[email protected]>. All Rights Reserved.
// See License.txt for license information.
package multi
type Outputter interface {
Output(calldepth int, s string) error
}
type Logger interface {
// Error is equivalent to Print() and logs the message at level Error.
Error(v ...any)
// Errorf is equivalent to Printf() and logs the message at level Error.
Errorf(format string, v ...any)
// Errorln is equivalent to Println() and logs the message at level Error.
Errorln(v ...any)
// Warn is equivalent to Print() and logs the message at level Warning.
Warn(v ...any)
// Warnf is equivalent to Printf() and logs the message at level Warning.
Warnf(format string, v ...any)
// Warnln is equivalent to Println() and logs the message at level Warning.
Warnln(v ...any)
// Info is equivalent to Print() and logs the message at level Info.
Info(v ...any)
// Infof is equivalent to Printf() and logs the message at level Info.
Infof(format string, v ...any)
// Infoln is equivalent to Println() and logs the message at level Info.
Infoln(v ...any)
// Debug is equivalent to Print() and logs the message at level Debug.
Debug(v ...any)
// Debugf is equivalent to Printf() and logs the message at level Debug.
Debugf(format string, v ...any)
// Debugln is equivalent to Println() and logs the message at level Debug.
Debugln(v ...any)
// Trace is equivalent to Print() and logs the message at level Trace.
Trace(v ...any)
// Tracef is equivalent to Printf() and logs the message at level Trace.
Tracef(format string, v ...any)
// Traceln is equivalent to Println() and logs the message at level Trace.
Traceln(v ...any)
}