Log_null Log_null(
string
$name, [string
$ident = ''], [array
$conf = array()], [int
$level = PEAR_LOG_DEBUG])
Constructs a new Log_null object.
Parameters:
string
$name
—
Ignored.
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])
Simply consumes the log event. The message will still be 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.