PHP Class Horde_Core_Log_Object, horde

Since: 2.5.0
Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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 méthode

public __get ( $name )

__set() public méthode

public __set ( $name, $value )

toArray() public méthode

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

Property Details

$_backtrace protected_oe property

Exception backtrace.
protected Horde_Support_Backtrace $_backtrace
Résultat Horde_Support_Backtrace

$_exception protected_oe property

Original exception.
protected Exception $_exception
Résultat Exception

$_logged protected_oe property

Has this object been logged?
protected bool $_logged
Résultat boolean

$_message protected_oe property

Log message.
protected string $_message
Résultat string

$_priority protected_oe property

Log priority.
protected int $_priority
Résultat integer

$_timestamp protected_oe property

Log timestamp.
protected int $_timestamp
Résultat integer