Skip to content
Snippets Groups Projects

Draft: Provide a way to disable creation of database log entries

3 files
+ 54
0
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 16
0
<?php
namespace Drupal\dblog\Logger;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Logger\RfcLoggerTrait;
use Psr\Log\LoggerInterface;
class Disabled implements LoggerInterface {
use RfcLoggerTrait;
use DependencySerializationTrait;
public function log($level, string|\Stringable $message, array $context = []): void {
// logging paused, do not log anything
}
}
Loading