-
Notifications
You must be signed in to change notification settings - Fork 28
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
syslog logging #223
Comments
I see the value in this, however I think it will be low priority. The problem with creating a new logging provider is that all loggers need to be quite well tested - when the logger has a bug much of the rest of the system can't work. In some cases even OTA safe mode will fail. Configuring an MQTT broker is one option - but if using the native API you can also just create an |
For what it is worth I also wanted one, so I spent the night and made a custom component, you can see it here: https://github.com/TheStaticTurtle/esphome_syslog |
It works for me. I modified your code a little to be able to natively log to syslog, not just through the logger component. I gave the component an id, like my_syslog, and use |
Here you go @atus42 it's implemented and should be working 😄 , btw there is an action for sending logs no need to create a lambda function. Maybe open an issue on my repo next time 😅. |
Dears, i came across this while i was teaching for a remote log solution,, thanks for putting this together. unfortunately i'm encountering compilation error as below,, I'm using Hassos and esphome add-on 2021.12.0 =================================================================
|
I have 0 clues what is wrong, my code hasn't changed for a very long time. Plus I just updated and everything (esphome, hassio, ....) and tried to re-compile, and it works without any issue. |
thanks for your your response,, will do..:) |
Describe the problem you have/What new integration you would like
It would be nice if the logger component would support logging via syslog.
Please describe your use case for this integration and alternatives you've tried:
I'd like to use esphome for a device that should work autonomously (without home assistant and mqtt broker) most of the time.
Configuring and running an MQTT broker just to be able to see the log output is cumbersome.
Additional context
Maybe this library could help.
The text was updated successfully, but these errors were encountered: