Main index | Section 3 | Options |
#include <libxo/xo.h>
Refer to xo_format(5) for basic information about formatting strings. xo_syslog encodes all value fields at SD-PARAMS within the syslog message. An exception is made for fields with the "{d:}" modifier; such fields appear in the message text only, with fields with the "{e:}" modifier appear as SD-PARAMS, but not in the message text.
xo_vsyslog() accepts a va_list for additional flexibility.
xo_open_log(), xo_close_log(,, and) xo_set_logmask() are all analogous to their libs counterparts, openlog(3), closelog(3), and setlogmask(3). The extra underscores in the names are unfortunate, but keep consistency in libxo function names.
xo_syslog(LOG_LOCAL4 | LOG_NOTICE, "ID47", "{e:iut/%u}An {:event-source} {:event-id/%u} log entry", iut, source, id);
LIBXO (3) | July 20, 2015 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. | ” |
— The Unix Haters' handbook |