init
This commit is contained in:
14
global/logger.go
Normal file
14
global/logger.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package global
|
||||
|
||||
import "github.com/sirupsen/logrus"
|
||||
|
||||
type Logger struct {
|
||||
*logrus.Logger
|
||||
Heads []string
|
||||
}
|
||||
|
||||
func (l *Logger) AddHead(args ...string) {
|
||||
for _, v := range args {
|
||||
l.Heads = append(l.Heads, v)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user