openlog(3): send messages to system logger - Linux man page
linux.die.net › man › 3openlog () opens a connection to the system logger for a program. The string pointed to by ident is prepended to every message, and is typically set to the program name. If ident is NULL, the program name is used. (POSIX.1-2008 does not specify the behavior when ident is NULL.) The option argument specifies flags which control the operation of ...
openlog (The GNU C Library)
https://www.gnu.org/software/libc/manual/html_node/openlog.htmlWithout the call to closelog, future invocations of syslog by the program using the shared library may crash, if the library gets unloaded and the memory containing the string "mylibrary" becomes unmapped. This is a limitation of the BSD syslog interface. openlog may or may not open the /dev/log socket, depending on option.If it does, it tries to open it and connect it as a stream …
openlog (The GNU C Library)
www.gnu.org › libc › manualopenlog opens or reopens a connection to Syslog in preparation for submitting messages. ident is an arbitrary identification string which future syslog invocations will prefix to each message. This is intended to identify the source of the message, and people conventionally set it to the name of the program that will submit the messages.