gome-assistant
gome-assistant copied to clipboard
Structured logging (slog)?
Hi @saml-dev
first of all, thanks a lot for your effort in building HA automation in Go!
I , kind of, follow a similar path when exploring all the different options for HA automation (from HA yaml -> node-red -> AppDaemon) and still being frustrated not to have a proper statically typed/compiled way of developing my smart home. I'm a former Java developer so I take it also as a chance to learn Go as my new language for hobby projects. :) From this perspective, I will not be able to bring much-advanced Go expertise so pls consider my contribution with this tolerance in mind. ;-)
When looking into the code, I can see there are several different ways used for logging and error handling, so I believe it would be great to align on one approach. In particular, what about migrating all logging to the new standard slog library (https://go.dev/blog/slog)?
Thanks, Jiri.
Contributions are welcome! Switching to the slog library seems like a great way to ease into it and get to know the code base a little bit. I'll review your PRs, thanks for considering contributing!