onrik / logrus

Hooks for logrus logging
MIT License
122 stars 30 forks source link

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

Open AdamEr8 opened 6 years ago

AdamEr8 commented 6 years ago

https://github.com/onrik/logrus/blob/6a64e23a4923a8d0d4db2806dcf3e55af1e48f61/filename/filename.go#L32-L33

Hi, Although the function name is now available, the formatter doesn't use it. Would be nice if it did :+1: (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 6 years ago

You can use custom formatter https://github.com/onrik/logrus/issues/3