-->
Page 1 of 1

Syslog code?

PostPosted: Sun Aug 16, 2015 8:17 am
by ibisum
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?

Re: Syslog code?

PostPosted: Sat Aug 22, 2015 6:42 am
by eriksl
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.

Re: Syslog code?

PostPosted: Tue Feb 02, 2016 11:15 am
by chaeplin

Re: Syslog code?

PostPosted: Wed Feb 03, 2016 6:20 am
by ibisum
Very nice - thanks for sharing the sample .. works well. Just got to add varargs and we have a logger replacement .. ;)