Horde::logMessage PHP Method

logMessage() public static method

Shortcut to logging method.
See also: log()
Deprecation: Use log() instead
public static logMessage ( $event, $priority = null, array $options = [] )
$options array
    public static function logMessage($event, $priority = null, array $options = array())
    {
        $options['trace'] = isset($options['trace']) ? $options['trace'] + 1 : 1;
        self::log($event, $priority, $options);
    }

Usage Example

Exemplo n.º 1
0
/**
 * Output an error if no CID was specified or the data wasn't in the
 * cache.
 */
function _cacheError($cid = null)
{
    if (!is_null($cid)) {
        Horde::logMessage('CID ' . $cid . ' not found in the cache, unable to display.', __FILE__, __LINE__, PEAR_LOG_ERR);
    }
    exit;
}
All Usage Examples Of Horde::logMessage