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

Properties

string $category Application responsible for log entry.
array $context The message context.
Date $date The date the message was logged.
string $message Message to be logged.
string $priority The priority of the message to be logged.
array $callStack Call stack and back trace of the logged call.

Methods

__construct( string $message, int $priority = Log::INFO, string $category = '', string $date = null, array $context = array())

Constructor

Details

__construct( string $message, int $priority = Log::INFO, string $category = '', string $date = null, array $context = array())

Constructor

Parameters

string $message The message to log.
int $priority Message priority based on {$this->priorities}.
string $category Type of entry
string $date Date of entry (defaults to now if not specified or blank)
array $context An optional array with additional message context.