Log_mcal Log_mcal(
string
$name, [string
$ident = ''], [array
$conf = array()], [int
$level = PEAR_LOG_DEBUG])
Constructs a new Log_mcal object.
Parameters:
string
$name
—
The category to use for our events.
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 and associated information to the currently open calendar stream. Calls open() if necessary. 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.
Opens a calendar stream, if it has not already been opened. This is implicitly called by log(), if necessary.
Overrides
Log::open() (Abstract implementation of the open() method.)