-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.go
58 lines (56 loc) · 1.32 KB
/
log.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
package goframe_utils
import "github.com/wsy9981999/goframe-util/log"
func ErrorWithDefault(v ...any) {
log.Error(nil, v...)
}
func ErrorfWithDefault(format string, v ...any) {
log.Errorf(nil, format, v...)
}
func FatalWithDefault(v ...any) {
log.Fatal(nil, v...)
}
func FatalfWithDefault(format string, v ...any) {
log.Fatalf(nil, format, v...)
}
func DebugWithDefault(v ...any) {
log.Debug(nil, v...)
}
func DebugfWithDefault(format string, v ...any) {
log.Debugf(nil, format, v...)
}
func InfoWithDefault(v ...any) {
log.Info(nil, v...)
}
func InfofWithDefault(format string, v ...any) {
log.Infof(nil, format, v...)
}
func WarningWithDefault(v ...any) {
log.Warning(nil, v...)
}
func Warningf(format string, v ...any) {
log.Warningf(nil, format, v...)
}
func PanicWithDefault(v ...any) {
log.Panic(nil, v...)
}
func PanicfWithDefault(format string, v ...any) {
log.Panicf(nil, format, v...)
}
func NoticeWithDefault(v ...any) {
log.Notice(nil, v...)
}
func NoticefWithDefault(format string, v ...any) {
log.Noticef(nil, format, v...)
}
func CriticalWithDefault(v ...any) {
log.Critical(nil, v...)
}
func CriticalfWithDefault(format string, v ...any) {
log.Criticalf(nil, format, v...)
}
func PrintWithDefault(v ...any) {
log.Print(nil, v...)
}
func PrintfWithDefault(format string, v ...any) {
log.Printf(nil, format, v...)
}