LogEntry
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.
since |
1.7.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor
__construct(string message, int priority = Log::INFO, string category = '', string date = null, array context = array()) : mixed
since |
1.7.0 |
---|---|
change |
3.10.7 If the message contains a full path, the root path (JPATH_ROOT) is removed from it to avoid any full path disclosure. Before 3.10.7, the path was propagated as provided. |
Arguments
- message
string
The message to log.- priority
int
Message priority based on {$this->priorities}.- category
string
Type of entry- date
string
Date of entry (defaults to now if not specified or blank)- context
array
An optional array with additional message context.
Response
mixed
Properties
priority
The priority of the message to be logged.
priorities
List of available log priority levels [Based on the Syslog default levels].