0 && $this->getParam('display_errors')) {
echo "\n';
}
switch ($message['type']) {
case MSG_ERR:
echo '
' . $message['message'] . '
';
break;
case MSG_WARNING:
echo '
' . $message['message'] . '
';
break;
case MSG_SUCCESS:
echo '
' . $message['message'] . '
';
break;
case MSG_NOTICE:
default:
echo '
' . $message['message'] . '
';
break;
}
?>
logPriorityToString($priority)) {
$this->logMsg(sprintf('Log priority %s not defined. (Message: %s)', $priority, $message), LOG_EMERG, $file, $line);
$priority = LOG_EMERG;
}
// If log file is not specified, don't log to a file.
if (!$this->getParam('log_directory') || !$this->getParam('log_filename') || !is_dir($this->getParam('log_directory')) || !is_writable($this->getParam('log_directory'))) {
$this->setParam(array('log_file_priority' => false));
// We must use trigger_error to report this problem rather than calling App::logMsg, which might lead to an infinite loop.
trigger_error(sprintf('Codebase error: log directory (%s) not found or writable.', $this->getParam('log_directory')), E_USER_NOTICE);
}
// Make sure to log in the system's locale.
$locale = setlocale(LC_TIME, 0);
setlocale(LC_TIME, 'C');
// Strip HTML tags except any with more than 7 characters because that's probably not a HTML tag, e.g.