Chat freely about anything...

User avatar
By ibisum
#26153 Hi ESP'ers,

I'm in the situation where I'm doing development with the ESP8266, and currently need the UART's for other things -which means I can't send debug output to Serial/Serial1 any more.

So I'll move over to the SYSLOG protocol, over UDP, to send debug messages.

Before I go through the effort I thought I'd check to see if anyone else has done this with the ESP yet, and if so if you're willing to share the code? I'd love to just be able to globally replace my "Serial.print()" calls with "syslog()" if its possible . . anyone know if it is out there already, or if not, any other tips for me before I write my own method?
User avatar
By eriksl
#26780 syslog/udp is quite simple. You're supposed to impose some formatting, but it's not required. If you really want to, you can just send any string on udp port 514 and it will work. It's better to include some host name, process name and timestamp of course.
User avatar
By ibisum
#40345 Very nice - thanks for sharing the sample .. works well. Just got to add varargs and we have a logger replacement .. ;)