JLogEntry

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.

package

Joomla.Platform

subpackage

Log

since

11.1

Methods

__construct

Constructor

__construct(string $message, string $priority = \JLog::INFO, string $category = '', string $date = null) 
since

11.1

Arguments

$message

stringThe message to log.

$priority

stringMessage priority based on {$this->priorities}.

$category

stringType of entry

$date

stringDate of entry (defaults to now if not specified or blank)

Properties

category

Application responsible for log entry.

since

11.1

Type(s)

string

date

The date the message was logged.

since

11.1

Type(s)

\JDate

message

Message to be logged.

since

11.1

Type(s)

string

priority

The priority of the message to be logged.

since

11.1

see \JLogEntry::priorities

Type(s)

string

priorities

List of available log priority levels [Based on the SysLog default levels].

since

11.1

Type(s)

array