openlog

openlog -- Open connection to system logger

Description

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

The option argument is used to indicate what loggin options will be used when generating a log message .

טבלה 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

טבלה 2 . openlog( ) Facilities

reserved for local use