NAME
	openlog - initializes the connection to syslogd

SYNTAX
	void openlog(string ident, int options, facility);

DESCRIPTION
	Initializes the connection to syslogd.

	The 'ident' argument specifies an identifier to tag all logentries
	with.

	'options' is a bitfield specifying the behaviour of the message
	logging. Valid options are:

	 LOG_PID	Log the process ID with each message.
	 LOG_CONS	Write messages to the console if they can't be sent to syslogd.
	 LOG_NDELAY	Open the connection to syslogd now and not later.
	 LOG_NOWAIT	Do not wait for subprocesses talking to syslogd.

	'facility' specifies what subsystem you want to log as. Valid
	facilities are:

	 LOG_AUTH	Authorization subsystem
	 LOG_AUTHPRIV
	 LOG_CRON	Crontab subsystem
	 LOG_DAEMON	System daemons
	 LOG_KERN	Kernel subsystem (NOT USABLE)
	 LOG_LOCAL	For local use
	 LOG_LOCAL[1-7]	For local use
	 LOG_LPR	Line printer spooling system
	 LOG_MAIL	Mail subsystem
	 LOG_NEWS	Network news subsystem
	 LOG_SYSLOG
	 LOG_USER
	 LOG_UUCP	UUCP subsystem

NOTA BENE
	Only available on systems with syslog(3).
	
BUGS
	LOG_NOWAIT should probably always be specified.

SEE ALSO
	syslog, closelog, setlogmask
