X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_print.xml;h=2d5d3639c89a87b00cceb47aa2a900b06785fc90;hb=ecf68b1d3833c2ee3156a813ad42cf155dc4ace4;hp=c40498b38a318e57d4945929dd5f20d1321d2ba0;hpb=a8eedf4953d379dc09ee2b04e69a0a54ba247a02;p=elogind.git diff --git a/man/sd_journal_print.xml b/man/sd_journal_print.xml index c40498b38..2d5d3639c 100644 --- a/man/sd_journal_print.xml +++ b/man/sd_journal_print.xml @@ -168,6 +168,23 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid( not desired it can be turned off by defining SD_JOURNAL_SUPPRESS_LOCATION before including sd-journal.h. + + syslog3 + and and sd_journal_print() may + mostly be used interchangably + functionality-wise. However, note that log messages + logged via the former take a different path to the + journal server than the later, and hence global + chronological ordering between the two streams cannot + be guaranteed. Using + sd_journal_print() has the + benefit of logging source code line, file names, and + functions as meta data along all entries, and + guaranteeing chronological ordering with structured + log entries that are generated via + sd_journal_send(). Using + syslog() has the benefit of being + more portable.