‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Log\Writer\DatabaseWriter Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\Writer\DatabaseWriter:
TYPO3\CMS\Core\Log\Writer\AbstractWriter TYPO3\CMS\Core\Log\Writer\WriterInterface

Public Member Functions

TYPO3 CMS Core Log Writer AbstractWriter setLogTable ($tableName)
string getLogTable ()
TYPO3 CMS Core Log Writer WriterInterface writeLog (LogRecord $record)
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Log\Writer\AbstractWriter
 __construct (array $options=[])

Protected Attributes

string $logTable = 'sys_log'

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\Writer\AbstractWriter
 interpolate (string $message, array $context=[])
 formatContextValue (string $value)
 formatException (\Throwable $ex)

Detailed Description

Log writer that writes the log records into a database table.

Definition at line 26 of file DatabaseWriter.php.

Member Function Documentation

◆ getLogTable()

string TYPO3\CMS\Core\Log\Writer\DatabaseWriter::getLogTable ( )

Get name of database log table

‪string Database table name

Definition at line 51 of file DatabaseWriter.php.

References TYPO3\CMS\Core\Log\Writer\DatabaseWriter\$logTable.

◆ setLogTable()

TYPO3 CMS Core Log Writer AbstractWriter TYPO3\CMS\Core\Log\Writer\DatabaseWriter::setLogTable (   $tableName)

Set name of database log table

string$tableNameDatabase table name

Definition at line 40 of file DatabaseWriter.php.

◆ writeLog()

TYPO3 CMS Core Log Writer WriterInterface TYPO3\CMS\Core\Log\Writer\DatabaseWriter::writeLog ( LogRecord  $record)

Writes the log record

LogRecord$recordLog record
‪\TYPO3\CMS\Core\Log\Writer\WriterInterface $this

Implements TYPO3\CMS\Core\Log\Writer\WriterInterface.

Definition at line 62 of file DatabaseWriter.php.

References TYPO3\CMS\Webhooks\Message\$record, and TYPO3\CMS\Core\Log\LogLevel\normalizeLevel().

Member Data Documentation

◆ $logTable

string TYPO3\CMS\Core\Log\Writer\DatabaseWriter::$logTable = 'sys_log'

Table to write the log records to.

Definition at line 32 of file DatabaseWriter.php.

Referenced by TYPO3\CMS\Core\Log\Writer\DatabaseWriter\getLogTable().