openlog

openlog -- Open connection to system logger

int openlog ( string ident, int option, int facility)

Tabela 1 . openlog( ) Options

You can use one or more of this options. When using multiple options you need to OR them, i.e. to open the connection immediately, write to the console and include the PID in each message, you will use: LOG_CONS | LOG_NDELAY | LOG_PID

Tabela 2 . openlog( ) Facilities