Source for file entry.php
Documentation is available at entry.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Joomla! Log Entry class
* This class is designed to hold log entries for either writing to an engine, or for
* supported engines, retrieving lists and building in memory (PHP based) search operations.
* @package Joomla.Platform
* Application responsible for log entry.
* The date the message was logged.
* The priority of the message to be logged.
* @see JLogEntry::$priorities
* List of available log priority levels [Based on the Syslog default levels].
* @param string $message The message to log.
* @param string $priority Message priority based on {$this->priorities}.
* @param string $category Type of entry
* @param string $date Date of entry (defaults to now if not specified or blank)
public function __construct($message, $priority =
JLog::INFO, $category =
'', $date =
null)
$this->message = (string)
$message;
// Sanitize the priority.
// Sanitize category if it exists.
// Get the date as a JDate object.
$this->date =
new JDate($date ?
$date :
'now');
Documentation generated on Tue, 19 Nov 2013 15:02:30 +0100 by phpDocumentor 1.4.3