Syslog
Syslog copied to clipboard
Just a question about strange characters ( ) in syslog file
Hi, and thanks for at great library.
I use it with rsyslog server on debian and wonder why i get strange characters ( ) in syslog file.
Aug 11 18:00:47 esp32-1 RC-Switch Temperature Sensor 1 25.937500 Aug 11 18:00:57 esp32-1 RC-Switch Temperature Sensor 1 26.000000
It is OK if i change this in syslog.cpp if (this->_protocol == SYSLOG_PROTO_IETF) { //this->_client->print(F(" - - - \xEF\xBB\xBF")); this->_client->print(F(" - - - ")); } else { this->_client->print(F("[0]: ")); }
I know this is not OK, but could you explain ?
thanks, [email protected]
Hello pemca,
Sorry for late answer, it's BOM (Unicode Byte Order Mark) to support UTF-8 characters in a message as is described here: https://tools.ietf.org/html/rfc5424#section-6
Anyway there is open issue https://github.com/rsyslog/rsyslog/issues/284, but it should be fixed since rsyslog v1.0.1.