Re: [systemd-devel] logging API

2017-04-20 Thread Jérémy Rosen
The logging API provided by journald is already very rich, have a look at man:sd_journal_send if you just want log levels, do note that journald will parse lines starting with "<1>" and related prefix as syslog levels and correctly treat them... even if those messages arrive through the stdou

[systemd-devel] logging API

2017-04-20 Thread Łukasz Stelmach
Hello. I am writing a new piece of code. After several dozens of fprintf(3) calls here and there I decided to clean that mess. I really like the internal logging API (log_error(), log_debug(), log_info_errno() etc.) used by systemd parts. Is it possible to make it part of the public libsystemd AP