This commit is contained in:
parent
586b2cc3af
commit
acc471e500
|
@ -35,6 +35,7 @@ func (u LogTextFormatter) Format(e *logrus.Entry) ([]byte, error) {
|
|||
}
|
||||
|
||||
if e.Caller != nil {
|
||||
fmt.Sprintf("%r", e)
|
||||
file := filepath.Base(e.Caller.File)
|
||||
line := e.Caller.Line
|
||||
return []byte(fmt.Sprintf("%s[%s] %s:%d %s%s\033[0m\n", color, level, file, line, message, color)), nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user