Pass logger to fasthttp#98
No reviewers
Labels
No labels
breaking
bug
build_pr_image
documentation
d̶u̶p̶l̶i̶c̶a̶t̶e̶
feature
good first issue
improvement
i̶n̶v̶a̶l̶i̶d̶
open questions
performance
refactor
research required
No project
No assignees
2 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/pages-server!98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch ":add-fasthttp-logger"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FASTHTTPprefix as fasthttp's logger so it's easy to see what fasthttp is logging in console/journal.@ -14,0 +16,4 @@type fasthttpLogger struct{}func (fasthttpLogger) Printf(format string, args ...interface{}) {log.Printf("[FASTHTTP] "+format, args...)I think we should use something like
log.Str("fasthttp").Printf(...)as zerolog is a structural logger
Could you point to the function of zerolog? I don't see it has an exported function called
log.Str(...)I'll have a look into it
that would be more the zerolog way ... through I dont know if we sould use Debug or Info or Trace
I guess for now info, fasthttp isn't clear on the usage of logger(currently it's just printing errors)
I don't think this is correct, https://go.dev/play/p/dx3bHPMsAXD
It's printing the raw info:
well yes as we did not specify a format ...
well better having logs than none ... I'm still not hapy as is