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

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

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>

date

The date the message was logged.

since

1.7.0

Type(s)

Date

message

Message to be logged.

since

1.7.0

Type(s)

string

priority

The priority of the message to be logged.

since

1.7.0

see LogEntry::$priorities

Type(s)

string

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>