Closed renathoaz closed 6 years ago
I implemented function name logging. You can customize output:
hook := filename.NewHook()
hook.Formatter = func(file, function string, line int) string {
fmt.Sprintf("%s:%d - %s", file, line, function)
}
Excellent! Thank you!
func(file, function string, line int) string { fmt.Sprintf("%s:%d - %s", file, line, function) }
missing "return" for fmt.Sprintf...
Would be nice if the hook has the option do display function name, just something like that could help: