forked from abramd/log
-
Notifications
You must be signed in to change notification settings - Fork 0
/
std.go
85 lines (64 loc) · 1.29 KB
/
std.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package log
import (
"os"
"log"
"io"
)
var std = New(os.Stdout, "", Error, log.LstdFlags)
func SetOutput(w io.Writer) {
std.SetOutput(w)
}
func SetFlags(flag int) {
std.SetFlags(flag)
}
func SetPrefix(prefix string) {
std.SetPrefix(prefix)
}
func SetVerbosity(lvl Verbosity) {
std.SetVerbosity(lvl)
}
func Fatalf(format string, args ...interface{}) {
std.Fatalf(format, args...)
}
func Fatalln(args ...interface{}) {
std.Fatalln(args...)
}
func Panicf(format string, args ...interface{}) {
std.Panicf(format, args...)
}
func Panicln(args ...interface{}) {
std.Panicln(args...)
}
func Errorf(format string, args ...interface{}) {
std.Errorf(format, args...)
}
func Errorln(args ...interface{}) {
std.Errorln(args...)
}
func Warningf(format string, args ...interface{}) {
std.Warningf(format, args...)
}
func Warningln(args ...interface{}) {
std.Warningln(args...)
}
func Infof(format string, args ...interface{}) {
std.Infof(format, args...)
}
func Infoln(args ...interface{}) {
std.Infoln(args...)
}
func Debugf(format string, args ...interface{}) {
std.Debugf(format, args...)
}
func Debugln(args ...interface{}) {
std.Debugln(args...)
}
func Prefix() string {
return std.Prefix()
}
func AddPrefix(prefix string) {
std.AddPrefix(prefix)
}
func Copy() *Logger {
return std.Copy()
}