Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AdamEr8 opened this issue May 8, 2018 · 1 comment

Comments

@AdamEr8
Copy link

AdamEr8 commented May 8, 2018

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
Copy link
Owner

onrik commented May 22, 2018

You can use custom formatter #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants