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

Public Member Functions

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

Private Member Functions

 lockWriter ()

Private Attributes

array $log = []
bool $memoryLock = false

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 static public class variable for InMemory processing. Note this implements SingletonInterface so multiple calls to this class can accumulate log records in the same instance.

Definition at line 37 of file InMemoryLogWriter.php.

Member Function Documentation

◆ getLogEntries()

LogRecord [] TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter::getLogEntries ( )

Definition at line 71 of file InMemoryLogWriter.php.

References TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter\$log.

◆ lockWriter()

TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter::lockWriter ( )

Lock writer and add an info message that there may potentially be more entries.

Definition at line 79 of file InMemoryLogWriter.php.

References TYPO3\CMS\Webhooks\Message\$record.

Referenced by TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter\writeLog().

◆ writeLog()

Member Data Documentation

◆ $log

array TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter::$log = []

◆ $memoryLock

bool TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter::$memoryLock = false

Definition at line 41 of file InMemoryLogWriter.php.