\Horde_Core_Log_Object

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

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
toArray()
$logged
$message
$priority
$timestamp
$backtrace
No constants found
No protected methods found
$_backtrace
$_exception
$_logged
$_message
$_priority
$_timestamp
N/A
No private methods found
No private properties found
N/A

Properties

$logged

$logged : boolean

Has this object been logged?

Type

boolean

$message

$message : string

Log message.

Type

string

$priority

$priority : integer

Log priority.

Type

integer

$timestamp

$timestamp : integer

Log timestamp.

Type

integer

$backtrace

$backtrace : \Horde_Support_Backtrace

Backtrace object.

Type

\Horde_Support_Backtrace

$_backtrace

$_backtrace : \Horde_Support_Backtrace

Exception backtrace.

Type

\Horde_Support_Backtrace

$_exception

$_exception : \Exception

Original exception.

Type

\Exception

$_logged

$_logged : boolean

Has this object been logged?

Type

boolean

$_message

$_message : string

Log message.

Type

string

$_priority

$_priority : integer

Log priority.

Type

integer

$_timestamp

$_timestamp : integer

Log timestamp.

Type

integer

Methods

__construct()

__construct(mixed  $event, mixed  $priority = null, array  $options = array()) 

Constructor.

Parameters

mixed $event

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

mixed $priority

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

array $options

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()

__get(  $name) 

Parameters

$name

__set()

__set(  $name,   $value) 

Parameters

$name
$value

toArray()

toArray() : array

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

Returns

array —

Array containting log output information.