<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The logging API provided by journald is already very rich, have a
look at <a class="moz-txt-link-freetext" href="man:sd_journal_send">man:sd_journal_send</a><br>
<br>
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
stdout of your daemon<br>
<br>
<a class="moz-txt-link-freetext" href="man:sd-daemon">man:sd-daemon</a> has the details of that particular feature. it's
particularly easy to use.<br>
<br>
<div class="moz-cite-prefix">On 20/04/2017 09:41, Łukasz Stelmach
wrote:<br>
</div>
<blockquote cite="mid:87vapzfrvw.fsf%25l.stelmach@samsung.com"
type="cite">
<pre wrap="">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 API? Where to
start the work?
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
systemd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div style="border-bottom: 1px solid #ccd4d7; margin:0 10px 10px
0; width:600px"> </div>
<div>
<table style="; padding: 15px 0 0 0" border="0">
<tbody>
<tr>
<td style="font-size:11px; color:#56707d; text-align:
center; "> <a href="http://www.smile.fr/"><img
src="cid:part1.36863C1C.6376B576@smile.fr"
alt="Logo" height="47" width="129"></a><br>
<br>
<font face="century gothic, arial, sans-serif">20 rue
des Jardins<br>
92600 Asnières-sur-Seine<br>
<a href="http://www.smile.fr/" style="font-size:14px;
color:#ec6608 ; text-decoration:none;">www.smile.fr</a></font>
</td>
<td style="padding-left:35px; font-size:12px;
color:#56707d">
<div style="color:#153358; font-size:12px;"><font
face="century gothic, arial, sans-serif"><b>Jérémy
ROSEN</b></font></div>
<div style="color:#117eb4; font-size:12px;"><font
face="century gothic, arial, sans-serif">Architecte
technique<br>
</font></div>
<div style="color:#56707d; font-size:12px;"><font
face="century gothic, arial, sans-serif">Email : <a
href="mailto:jeremy.rosen@smile.fr"
style="color:#56707d; font-size:12px;
text-decoration:none;">jeremy.rosen@smile.fr</a> <br>
Tel : +33141402967 </font></div>
<br>
<div> <span><a
href="https://www.facebook.com/smileopensource"><img
src="cid:part5.F46A6BBC.FE5B3D5C@smile.fr"
alt="Facebook" height="24" width="25"></a></span>
<span><a
href="http://fr.slideshare.net/SmileOpenSource/presentations"><img
src="cid:part7.6929CE50.9C06535C@smile.fr"
alt="Google%2B" height="24" width="25"></a></span>
<span><a href="https://www.linkedin.com/company/smile"><img
src="cid:part9.F134384D.FEEE48B0@smile.fr"
alt="LinkedIn" height="24" width="25"></a></span>
<span><a href="https://twitter.com/GroupeSmile"><img
src="cid:part11.80C1B9D1.1ABB3614@smile.fr"
alt="Twitter" height="24" width="25"></a></span>
</div>
</td>
</tr>
</tbody>
</table>
<div style="border-bottom: 1px solid #ccd4d7; margin:0 10px 0 0;
width:600px"> </div>
<br>
<div> <a
href="http://www.smile.fr/Offres-services/Offres/Ingenierie?utm_source=signature&utm_medium=email&utm_campaign=signature"><img
src="cid:part13.73AC5AFE.93E56FA0@smile.fr"
alt="bandeaux_mail" border="0"></a></div>
<br>
<div style="color:#a3acb5; font-size:10px;"> <img
src="cid:part15.0BF8AB33.E889155D@smile.fr" alt="eco"
height="11" width="13"> <font face="century gothic, arial,
sans-serif"> Pour la planète, n'imprimez ce mail que si
c'est nécessaire </font> </div>
</div>
</div>
</body>
</html>