Re:Labstack/echo: High performance, minimalist Go web framework
by qzio on Monday August 15, 2022 @03:17PM
(#32474005)
Can you provide a link to this interface?
The log package in stdlib doesn’t let you specify levels, just a Printf unless Iam mistaken, and it is not an interface I believe.
Re:Labstack/echo: High performance, minimalist Go web framework
by gabereiser on Monday August 15, 2022 @04:39PM
(#32475060)
Ah, it's not an interface but a struct. My mistake. The syslog part of the log package allows you to specify the priority. https://pkg.go.dev/log/[email protected]#Priority
I think the stance on logging by the core Go team is the right way to go about it. Just provide a basic logger, an interface, and let the projects determine how they want to route those logs and what kind of data should it include.