Log_console Log_console(
string
$name, [string
$ident = ''], [array
$conf = array()], [int
$level = PEAR_LOG_DEBUG])
Constructs a new Log_console 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.
Closes the output stream.
This results in a call to flush().
- Since: Log 1.9.0
- Access: public
Overrides
Log::close() (Abstract implementation of the close() method.)
boolean log(
mixed
$message, [string
$priority = null])
Writes $message to the text console. Also, passes the message 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.