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
Using klog in the examples #3
Comments
Hi Mauricio! I think it will be a great improvement for the mini-programs indeed! Have you considered using go-logr/logr for that? It's a flexible logging interface that can be backed by many concrete logger implementations, including |
Thanks for the suggestion, I tried using klogr and while it might be great for a full fledged application I think the output makes it a little bit confusing if you're not aware of what it does, for example the output for crud-dynamic-example becomes:
I was thinking that these examples are short enough to use std libraries and using things like |
On second thought, keeping the mini-programs dependencies at the bare minimum probably might be even more important than rich logging. Thanks for opening this issue anyway, it was good food for thought! |
Thank you for the blogposts and for these snippets! I think it's very useful to see the timestamps in the examples that you have, I was wondering if you'd be ok if I submit a change replacing
fmt.Printf
withklog.Infof
The text was updated successfully, but these errors were encountered: