EventLog: ezcLogEntry
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcLogEntry
|
File containing the ezcLogEntry class. [
source]
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.
Parents
ezcBaseStruct
|
--ezcLogEntry
Member Variables
|
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 |
Method Summary
|
public ezcLogEntry |
__construct(
[$message = ''], [$severity = 0], [$source = ''], [$category = ''], [$optional = array()], [$timestamp = null] )
Constructs a new ezcLogEntry. |
|
public static ezcLogEntry |
__set_state(
$array )
Returns a new instance of this class with the data specified by $array. |
Methods
__construct
ezcLogEntry __construct(
[string
$message = ''], [int
$severity = 0], [string
$source = ''], [string
$category = ''], [array
$optional = array()], [int
$timestamp = null] )
Constructs a new ezcLogEntry.
Parameters
| Name |
Type |
Description |
$message |
string |
|
$severity |
int |
|
$source |
string |
|
$category |
string |
|
$optional |
array |
|
$timestamp |
int |
|
__set_state
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.
Parameters
| Name |
Type |
Description |
$array |
array(string=>mixed) |
|
Last updated: Mon, 21 Dec 2009