Review main Abandoned

56859[WIP][FEATURE] Allow to add channel for loggers

Helmut Hummel CR 0 V 0 Normal +108 −19 updated 09/17/18, 00:15

Commit message

Also allow to disable loggers, writers and processors
(these two changes can be separated from each other)


Usage:

Either configure the channel globally for a component:

'loggerConfiguration' => [
    'channel' => 'tslog',
],
'writerConfiguration' => [
    \TYPO3\CMS\Core\Log\LogLevel::WARNING => [
        \TYPO3\CMS\Core\Log\Writer\AdminPanelWriter::class => []
    ]
],

Or switch channels in code:

$tsLogger = $this->logger->forChannel('tslog');
$securityLogger = $this->logger->forChannel('security');

Depending on the writer, the channel is just another data point,
or it can use the getChannel() method on the log to perform
differently.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Files 10