Log_error_log __construct(
string
$name, [string
$ident = ''], [array
$conf = array()], [int
$level = PEAR_LOG_DEBUG])
Constructs a new Log_error_log object.
Overrides
Log::__construct() (parent method not documented)
Parameters:
string
$name
—
One of the PEAR_LOG_TYPE_* constants.
string
$ident
—
The identity string.
array
$conf
—
The configuration array.
int
$level
—
Log messages up to and including this level.
boolean log(
mixed
$message, [string
$priority = null])
Logs $message using PHP's error_log() function. The message is also passed along to any Log_observer instances that are observing this Log.
- Return: True on success or false on failure.
- Access: public
Overrides
Log::log() (Abstract implementation of the log() method.)
Parameters:
mixed
$message
—
String or object containing the message to log.
string
$priority
—
The priority of the message. Valid values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT, PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING, PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.