PHP Class Horde_Core_Log_Object, horde

Since: 2.5.0
Author: Michael Slusarz ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_backtrace Horde_Support_Backtrace Exception backtrace.
$_exception Exception Original exception.
$_logged boolean Has this object been logged?
$_message string Log message.
$_priority integer Log priority.
$_timestamp integer Log timestamp.

Public Methods

Method Description
__construct ( mixed $event, mixed $priority = null, array $options = [] ) Constructor.
__get ( $name )
__set ( $name, $value )
toArray ( ) : array Formats the object for use with Horde_Log_Logger#out().

Method Details

__construct() public method

Constructor.
public __construct ( mixed $event, mixed $priority = null, array $options = [] )
$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 The priority of the message. Integers correspond to Horde_Log constants. String values are auto translated to Horde_Log constants.
$options 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 method

public __get ( $name )

__set() public method

public __set ( $name, $value )

toArray() public method

Formats the object for use with Horde_Log_Logger#out().
public toArray ( ) : array
return array Array containting log output information.

Property Details

$_backtrace protected_oe property

Exception backtrace.
protected Horde_Support_Backtrace $_backtrace
return Horde_Support_Backtrace

$_exception protected_oe property

Original exception.
protected Exception $_exception
return Exception

$_logged protected_oe property

Has this object been logged?
protected bool $_logged
return boolean

$_message protected_oe property

Log message.
protected string $_message
return string

$_priority protected_oe property

Log priority.
protected int $_priority
return integer

$_timestamp protected_oe property

Log timestamp.
protected int $_timestamp
return integer