TYPO3
7.6
|
Public Member Functions | |
__construct (array $options=array()) | |
__destruct () | |
setFacility ($facility) | |
getMessageForSyslog (LogRecord $record) | |
writeLog (LogRecord $record) | |
Public Member Functions inherited from AbstractWriter | |
__construct (array $options=array()) | |
Public Member Functions inherited from WriterInterface | |
writeLog (\TYPO3\CMS\Core\Log\LogRecord $record) | |
Protected Attributes | |
$facility = LOG_USER | |
Private Attributes | |
$facilities | |
Log writer that writes to syslog
Definition at line 21 of file SyslogWriter.php.
__construct | ( | array | $options = array() | ) |
Constructor, adds facilities on *nix environments.
array | $options | Configuration options |
\RuntimeException | if connection to syslog cannot be opened |
Definition at line 57 of file SyslogWriter.php.
__destruct | ( | ) |
Destructor, closes connection to syslog.
Definition at line 80 of file SyslogWriter.php.
getMessageForSyslog | ( | LogRecord | $record | ) |
Returns the data of the record in syslog format
LogRecord | $record |
Definition at line 104 of file SyslogWriter.php.
References LogRecord\getComponent(), LogRecord\getData(), LogRecord\getMessage(), and LogRecord\getRequestId().
Referenced by SyslogWriter\writeLog().
setFacility | ( | $facility | ) |
Sets the facility to use when logging to syslog.
int | $facility | Facility to use when logging. |
Definition at line 91 of file SyslogWriter.php.
References SyslogWriter\$facility.
writeLog | ( | LogRecord | $record | ) |
Writes the log record to syslog
\RuntimeException |
Definition at line 133 of file SyslogWriter.php.
References LogRecord\getLevel(), and SyslogWriter\getMessageForSyslog().
|
private |
Definition at line 29 of file SyslogWriter.php.
|
protected |
Definition at line 48 of file SyslogWriter.php.
Referenced by SyslogWriter\setFacility().