Log_daemon Log_daemon(
string
$name, [string
$ident = ''], [array
$conf = array()], [
$level = PEAR_LOG_DEBUG], int
$maxLevel)
Constructs a new syslog object.
Parameters:
string
$name
—
The syslog facility.
string
$ident
—
The identity string.
array
$conf
—
The configuration array.
int
$maxLevel
—
Maximum level at which to log.
$level
—
Closes the connection to the system logger, if it is open.
Overrides
Log::close() (Abstract implementation of the close() method.)
void log(
string
$message, [int
$priority = null])
Sends $message to the currently open syslog connection. Calls open() if necessary. Also passes the message along to any Log_observer instances that are observing this Log.
Overrides
Log::log() (Abstract implementation of the log() method.)
Parameters:
string
$message
—
The textual message to be logged.
int
$priority
—
(optional) The priority of the message. Valid values are: LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, and LOG_DEBUG. The default is LOG_INFO.
Opens a connection to the system logger, if it has not already been opened. This is implicitly called by log(), if necessary.
Overrides
Log::open() (Abstract implementation of the open() method.)