Back to Joomla project (class list)

Class LogEntry - list of methods

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\CMS\Log
Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Log/LogEntry.php
Project: Joomla

Method Summary

public
(mixed $message, mixed $priority = Log::INFO, mixed $category = '', mixed $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.
Since
  • 1.7.0
-
  • 3.10.7 If the message containes 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.
Show source code of this method: __construct Source Code

Properties Summary

public string
$category
Application responsible for log entry.
Since
  • 1.7.0
public array
$context
The message context.
Since
  • 3.8.0
public \Joomla\CMS\Date\Date
$date
The date the message was logged.
Since
  • 1.7.0
public string
$message
Message to be logged.
Since
  • 1.7.0
public string
$priority
The priority of the message to be logged.
Since
  • 1.7.0
-
  • string
protected array
$priorities
List of available log priority levels [Based on the Syslog default levels].
Since
  • 1.7.0
public array
$callStack
Call stack and back trace of the logged call.
Since
  • 3.1.4

Tags Summary

Since
1.7.0