-
Notifications
You must be signed in to change notification settings - Fork 1
/
api.go
66 lines (50 loc) · 1.21 KB
/
api.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package log
import "github.com/hephbuild/heph/log/liblog"
type Level = liblog.Level
var ParseLevel = liblog.ParseLevel
const (
InvalidLevel = liblog.InvalidLevel
TraceLevel = liblog.TraceLevel
DebugLevel = liblog.DebugLevel
InfoLevel = liblog.InfoLevel
WarnLevel = liblog.WarnLevel
ErrorLevel = liblog.ErrorLevel
PanicLevel = liblog.PanicLevel
FatalLevel = liblog.FatalLevel
)
func Trace(args ...any) {
defaultLogger.Trace(args...)
}
func Tracef(f string, args ...interface{}) {
defaultLogger.Tracef(f, args...)
}
func Debug(args ...any) {
defaultLogger.Debug(args...)
}
func Debugf(f string, args ...interface{}) {
defaultLogger.Debugf(f, args...)
}
func Info(args ...any) {
defaultLogger.Info(args...)
}
func Infof(f string, args ...interface{}) {
defaultLogger.Infof(f, args...)
}
func Warn(args ...any) {
defaultLogger.Warn(args...)
}
func Warnf(f string, args ...interface{}) {
defaultLogger.Warnf(f, args...)
}
func Error(args ...any) {
defaultLogger.Error(args...)
}
func Errorf(f string, args ...interface{}) {
defaultLogger.Errorf(f, args...)
}
func Fatal(args ...any) {
defaultLogger.Fatal(args...)
}
func Fatalf(f string, args ...interface{}) {
defaultLogger.Fatalf(f, args...)
}