On 24/5/19 11:40, Kaspar Schleiser wrote:

> IMO the syslog API itself should not be used for new or RIOT-targeting
applications...

Except it already is:

#define log_write(level, ...) printf(__VA_ARGS__)

and

static inline void log_write(unsigned level, const char *format, ...) {

While syslog has

void syslog(int priority, const char *format, ...);

So the existing log framework is almost the same as syslog, but with different names (it makes sense, there are not that many ways of doing logging.)

BTW, this thing can be quite useful when logging to serial: by having a backend that sends logs as messages in a queue one can prevent messages sent simultaneously from stepping over each other.

Regards,

Juan.
_______________________________________________
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to