File containing the ezcLogEntry class.
The ezcLogEntry class provides a structure to represent a log entry with all data passed to ezcLog::log().
This class is used for entries hold by the ezcLogStackWriter.
Source for this file: /EventLog/src/structs/log_entry.php
ezcBaseStruct | --ezcLogEntry
Version: | //autogentag// |
public string |
$category
The category of the log message. |
public string |
$message
The textual log message. |
public array |
$optional
Optional informations |
public int |
$severity
Severity of the log message. |
public string |
$source
The source of the log message. |
public int |
$timestamp
The timestamp of the moment when this object was created |
public static ezcLogEntry |
__set_state(
$array
)
Returns a new instance of this class with the data specified by $array. |
public ezcLogEntry |
__construct(
[ $message
= ''] , [ $severity
= 0] , [ $source
= ''] , [ $category
= ''] , [ $optional
= array()] , [ $timestamp
= null] )
Constructs a new ezcLogEntry. |
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.
Name | Type | Description |
---|---|---|
$array |
array(string=>mixed) |
Constructs a new ezcLogEntry.
Name | Type | Description |
---|---|---|
$message |
string | |
$severity |
int | |
$source |
string | |
$category |
string | |
$optional |
array | |
$timestamp |
int |