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 containes 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
stringThe message to log.- priority
intMessage priority based on {$this->priorities}.- category
stringType of entry- date
stringDate of entry (defaults to now if not specified or blank)- context
arrayAn optional array with additional message context.
Response
mixed
Properties
category
Application responsible for log entry.
| since |
1.7.0 |
|---|
Type(s)
string
context
The message context.
| since |
3.8.0 |
|---|
Type(s)
array
date
The date the message was logged.
| since |
1.7.0 |
|---|
Type(s)
\Joomla\CMS\Date\Date
message
Message to be logged.
| since |
1.7.0 |
|---|
Type(s)
string
priority
The priority of the message to be logged.
priorities
List of available log priority levels [Based on the Syslog default levels].
| since |
1.7.0 |
|---|
Type(s)
array
callStack
Call stack and back trace of the logged call.
| since |
3.1.4 |
|---|
Type(s)
array