Documentation

Horde_Core_Log_Object
in package

A loggable event, with the display controlled by Horde configuration.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL-2.1

since
2.5.0

Table of Contents

Properties

$backtrace  : Horde_Support_Backtrace
$logged  : bool
$message  : string
$priority  : int
$timestamp  : int
$_backtrace  : Horde_Support_Backtrace
Exception backtrace.
$_exception  : Exception
Original exception.
$_logged  : bool
Has this object been logged?
$_message  : string
Log message.
$_priority  : int
Log priority.
$_timestamp  : int
Log timestamp.

Methods

__construct()  : mixed
Constructor.
__get()  : mixed
__set()  : mixed
toArray()  : array<string|int, mixed>
Formats the object for use with Horde_Log_Logger#out().

Properties

$backtrace read-only

public Horde_Support_Backtrace $backtrace

Backtrace object.

$logged

public bool $logged

Has this object been logged?

$message

public string $message

Log message.

$priority

public int $priority

Log priority.

$timestamp

public int $timestamp

Log timestamp.

$_backtrace

Exception backtrace.

protected Horde_Support_Backtrace $_backtrace

$_exception

Original exception.

protected Exception $_exception

$_logged

Has this object been logged?

protected bool $_logged = \false

$_message

Log message.

protected string $_message = ''

$_priority

Log priority.

protected int $_priority = \Horde_Log::INFO

$_timestamp

Log timestamp.

protected int $_timestamp

Methods

__construct()

Constructor.

public __construct(mixed $event[, mixed $priority = null ][, array<string|int, mixed> $options = array() ]) : mixed
Parameters
$event : mixed

Either a string (log string), an array (containing 'level', 'message', and 'timestamp' entries) or an object with a getMessage() method (e.g. PEAR_Error, Exception).

$priority : mixed = null

The priority of the message. Integers correspond to Horde_Log constants. String values are auto translated to Horde_Log constants.

$options : array<string|int, mixed> = array()

Additional options:

  • file: (string) The filename to use in the log message.
  • line: (integer) The file line to use in the log message.
  • notracelog: (boolean) If true, don't output backtrace.
  • trace: (integer) The trace level of the original log location.

__get()

public __get(mixed $name) : mixed
Parameters
$name : mixed

__set()

public __set(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

toArray()

Formats the object for use with Horde_Log_Logger#out().

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Array containting log output information.


        
On this page

Search results