X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_stream_fd.xml;h=c9ce7cdb227e0279f432e94ba850af3a7c139667;hb=bf3f1271e2cc0c22b11c8a805a997578dabe9191;hp=662c7bbbb991e5919eb804d8dd0b9b492a4df947;hpb=19125c205aa6084c225b5c11cc6dcbe18c6dbcc0;p=elogind.git
diff --git a/man/sd_journal_stream_fd.xml b/man/sd_journal_stream_fd.xml
index 662c7bbbb..c9ce7cdb2 100644
--- a/man/sd_journal_stream_fd.xml
+++ b/man/sd_journal_stream_fd.xml
@@ -53,7 +53,7 @@
int sd_journal_stream_fd
- const char* identifier
+ const char *identifier
int priority
int level_prefix
@@ -67,10 +67,10 @@
sd_journal_stream_fd() may
be used to create a log stream file descriptor. Log
messages written to this file descriptor as simple
- newline separated text strings are written to the
+ newline-separated text strings are written to the
journal. This file descriptor can be used internally
- by applications or be made STDOUT/STDERR of other
- processes executed.
+ by applications or be made standard output or standard
+ error of other processes executed.
sd_journal_stream_fd()
takes a short program identifier string as first
@@ -79,24 +79,24 @@
systemd.journal-fields7
for more information). The second argument shall be
the default priority level for all messages. The
- priority level is one of LOG_EMERG,
- LOG_ALERT,
- LOG_CRIT,
- LOG_ERR,
- LOG_WARNING,
- LOG_NOTICE,
- LOG_INFO,
- LOG_DEBUG, as defined in
+ priority level is one of LOG_EMERG,
+ LOG_ALERT,
+ LOG_CRIT,
+ LOG_ERR,
+ LOG_WARNING,
+ LOG_NOTICE,
+ LOG_INFO,
+ LOG_DEBUG, as defined in
syslog.h, see
- syslog3
+ syslog3
for details. The third argument is a boolean: if true
kernel-style log priority level prefixes (such as
- SD_WARNING) are interpreted, see
+ SD_WARNING) are interpreted, see
sd-daemon3
for more information.
It is recommended that applications log UTF-8
- mesages only with this API, but this is not
+ messages only with this API, but this is not
enforced.
@@ -112,10 +112,9 @@
Notes
The sd_journal_stream_fd()
- interface is available as shared library, which can
+ interface is available as a shared library, which can
be compiled and linked to with the
- libsystemd-journal
- pkg-config1
+ libsystemd pkg-config1
file.
@@ -123,7 +122,7 @@
Examples
Creating a log stream suitable for
- fprintf3:
+ fprintf3:
#include <syslog.h>
#include <stdio.h>
@@ -162,8 +161,8 @@ int main(int argc, char *argv[]) {
sd-journal3,
sd-daemon3,
sd_journal_print3,
- syslog3,
- fprintf3,
+ syslog3,
+ fprintf3,
systemd.journal-fields7