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

Methods

__construct

Constructor

__construct(string $message, integer $priority = \Joomla\CMS\Log\Log::INFO, string $category = '', string $date = null, array $context = array()) 
since

1.7.0

Arguments

$message

stringThe message to log.

$priority

integerMessage 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.

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.

since

1.7.0

see \Joomla\CMS\Log\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

callStack

Call stack and back trace of the logged call.

since

3.1.4

Type(s)

array