onrik/logrus

filename.go doesn't include Func name in the log - is this intentional?

Opened this issue · 1 comments

Formatter: func(file, function string, line int) string {
return fmt.Sprintf("%s:%d", file, line)

Hi,
Although the function name is now available, the formatter doesn't use it.
Would be nice if it did 👍
(if some users feel like it is too cumbersome and prefer only file+line, maybe should introduce a separate one that is identical to filename.go except for including the func name in the log)

any thoughts?

onrik commented

You can use custom formatter #3