enesbcs / rpieasy

Easy MultiSensor device based on Raspberry PI
GNU General Public License v3.0
159 stars 33 forks source link

Feature Request: Logging to external Syslog server #8

Closed Budman1758 closed 5 years ago

Budman1758 commented 5 years ago

This would be a very handy feature. I use it for logging on all of my ESP units. Be nice to do the same with RPI Easy. :)

enesbcs commented 5 years ago

I think it is possible and not so complicated. ESPEasy connects at UDP port 514 to the specified syslog server IP, but do you use Facility code and shall we expose a setting for that?

Budman1758 commented 5 years ago

but do you use Facility code and shall we expose a setting for that?<

I don't use anything special at all. I use Tftpd64 Service Edition on a Windows PC. I don't know what you mean by "Facility code" but if others would find it useful by all means include the setting for it. :)

enesbcs commented 5 years ago

I do not know what is exactly the Facility code purpose, i am using default 0. If anyone need it, it can be added later. Preliminary syslog client support added at https://github.com/enesbcs/rpieasy/commit/3f11bd58b92966ecae1de2dd374c90baab469204.

Budman1758 commented 5 years ago

Perfect!! Just what the doctor ordered!! Thanks.