function RfcLoggerTrait::log

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::log()
  2. 10 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::log()
  3. 11.x core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::log()
8 calls to RfcLoggerTrait::log()
RfcLoggerTrait::alert in core/lib/Drupal/Core/Logger/RfcLoggerTrait.php
RfcLoggerTrait::critical in core/lib/Drupal/Core/Logger/RfcLoggerTrait.php
RfcLoggerTrait::debug in core/lib/Drupal/Core/Logger/RfcLoggerTrait.php
RfcLoggerTrait::emergency in core/lib/Drupal/Core/Logger/RfcLoggerTrait.php
RfcLoggerTrait::error in core/lib/Drupal/Core/Logger/RfcLoggerTrait.php

... See full list

5 methods override RfcLoggerTrait::log()
DbLog::log in core/modules/dblog/src/Logger/DbLog.php
SecurityAdvisoriesFetcherTest::log in core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php
SysLog::log in core/modules/syslog/src/Logger/SysLog.php
TestLog::log in core/modules/system/tests/modules/error_service_test/src/Logger/TestLog.php
UpdateFetcherTest::log in core/modules/update/tests/src/Unit/UpdateFetcherTest.php

File

core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 76

Class

RfcLoggerTrait
A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.

Namespace

Drupal\Core\Logger

Code

public abstract function log($level, $message, array $context = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.