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( message, priority = Log::INFO, category = '', date = null, mixed||string|int context = []) :
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<string|int, mixed>
An 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<string|int, mixed>
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<string|int, mixed>
callStack
Call stack and back trace of the logged call.
since |
3.1.4 |
---|
Type(s)
array<string|int, mixed>