![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($component= '', $level, $message, array $data=array()) | |
setComponent ($component) | |
getComponent () | |
setCreated ($created) | |
getCreated () | |
setLevel ($level) | |
getLevel () | |
setData ($data) | |
getData () | |
addData (array $data) | |
setMessage ($message) | |
getMessage () | |
setRequestId ($requestId) | |
getRequestId () | |
__toString () | |
toArray () | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
Protected Attributes | |
$requestId = '' | |
$created = 0.0 | |
$component = '' | |
$level = LogLevel::INFO | |
$message = '' | |
$data = array() | |
Private Attributes | |
$gettableProperties | |
$settableProperties | |
Log record
Definition at line 22 of file LogRecord.php.
__construct | ( | $component = '' , |
|
$level, | |||
$message, | |||
array | $data = array() |
||
) |
Constructor.
string | $component | Affected component |
int | $level | Severity level (see ) |
string | $message | Log message |
array | $data | Additional data |
Definition at line 99 of file LogRecord.php.
References LogRecord\$component, LogRecord\$data, LogRecord\$level, LogRecord\$message, Bootstrap\getInstance(), LogRecord\getRequestId(), and LogRecord\setRequestId().
__toString | ( | ) |
Convert record to string for simple output, like echo(). Contents of data array is appended as JSON-encoded string
Definition at line 263 of file LogRecord.php.
References LogRecord\$data, and LogLevel\getName().
addData | ( | array | $data | ) |
Adds additional log data to already existing data and overwrites previously data using the same array keys.
array | $data |
Definition at line 207 of file LogRecord.php.
Referenced by IntrospectionProcessor\processLogRecord().
getComponent | ( | ) |
Returns the component
Definition at line 126 of file LogRecord.php.
References LogRecord\$component.
Referenced by SyslogWriter\getMessageForSyslog(), PhpErrorLogWriter\writeLog(), DatabaseWriter\writeLog(), and FileWriter\writeLog().
getCreated | ( | ) |
Returns the creation time
Definition at line 148 of file LogRecord.php.
References LogRecord\$created.
Referenced by DatabaseWriter\writeLog(), and FileWriter\writeLog().
getData | ( | ) |
Returns the log data
Definition at line 195 of file LogRecord.php.
References LogRecord\$data.
Referenced by SyslogWriter\getMessageForSyslog(), PhpErrorLogWriter\writeLog(), DatabaseWriter\writeLog(), and FileWriter\writeLog().
getLevel | ( | ) |
Returns the severity level
Definition at line 173 of file LogRecord.php.
References LogRecord\$level.
Referenced by Logger\callProcessors(), PhpErrorLogWriter\writeLog(), DatabaseWriter\writeLog(), FileWriter\writeLog(), SyslogWriter\writeLog(), and Logger\writeLog().
getMessage | ( | ) |
Returns the log message
Definition at line 230 of file LogRecord.php.
References LogRecord\$message.
Referenced by SyslogWriter\getMessageForSyslog(), PhpErrorLogWriter\writeLog(), DatabaseWriter\writeLog(), and FileWriter\writeLog().
getRequestId | ( | ) |
Returns the request ID
Definition at line 252 of file LogRecord.php.
References LogRecord\$requestId.
Referenced by LogRecord\__construct(), SyslogWriter\getMessageForSyslog(), PhpErrorLogWriter\writeLog(), DatabaseWriter\writeLog(), and FileWriter\writeLog().
offsetExists | ( | $offset | ) |
Checks whether an offset exists, required by ArrayAccess interface
mixed | $offset |
Definition at line 311 of file LogRecord.php.
offsetGet | ( | $offset | ) |
Offset to retrieve, required by ArrayAccess interface
mixed | $offset |
Definition at line 326 of file LogRecord.php.
offsetSet | ( | $offset, | |
$value | |||
) |
Offset to set, required by ArrayAccess interface
mixed | $offset | |
mixed | $value |
Definition at line 341 of file LogRecord.php.
offsetUnset | ( | $offset | ) |
Offset to unset, required by ArrayAccess interface
mixed | $offset |
Definition at line 354 of file LogRecord.php.
setComponent | ( | $component | ) |
Sets the affected component
string | $component | Component key |
Definition at line 115 of file LogRecord.php.
References LogRecord\$component.
setCreated | ( | $created | ) |
Sets the the creation time
float | $created | Creation time as float |
Definition at line 137 of file LogRecord.php.
References LogRecord\$created.
setData | ( | $data | ) |
Sets log data array
array | $data |
Definition at line 184 of file LogRecord.php.
References LogRecord\$data.
setLevel | ( | $level | ) |
Sets the severity level
int | $level | Severity level |
Definition at line 160 of file LogRecord.php.
References LogRecord\$level, and LogLevel\validateLevel().
setMessage | ( | $message | ) |
Sets the log message
string | object | $message | Log message. Usually a string, or an object that can be casted to string (implements __toString()) |
Definition at line 219 of file LogRecord.php.
References LogRecord\$message.
setRequestId | ( | $requestId | ) |
Sets the request ID
string | $requestId |
Definition at line 241 of file LogRecord.php.
References LogRecord\$requestId.
Referenced by LogRecord\__construct().
toArray | ( | ) |
|
protected |
Definition at line 43 of file LogRecord.php.
Referenced by LogRecord\__construct(), LogRecord\getComponent(), and LogRecord\setComponent().
|
protected |
Definition at line 36 of file LogRecord.php.
Referenced by LogRecord\getCreated(), and LogRecord\setCreated().
|
protected |
Definition at line 64 of file LogRecord.php.
Referenced by LogRecord\__construct(), LogRecord\__toString(), LogRecord\getData(), and LogRecord\setData().
|
private |
Definition at line 71 of file LogRecord.php.
|
protected |
Definition at line 50 of file LogRecord.php.
Referenced by LogRecord\__construct(), LogRecord\getLevel(), and LogRecord\setLevel().
|
protected |
Definition at line 57 of file LogRecord.php.
Referenced by LogRecord\__construct(), LogRecord\getMessage(), and LogRecord\setMessage().
|
protected |
Definition at line 29 of file LogRecord.php.
Referenced by LogRecord\getRequestId(), and LogRecord\setRequestId().
|
private |
Definition at line 85 of file LogRecord.php.