You are here

constant ControllerTest::LEVEL_TRANSLATION in MongoDB 8.2

Map of PSR3 log constants to RFC 5424 log constants.

File

modules/mongodb_watchdog/tests/src/Functional/ControllerTest.php, line 45

Class

ControllerTest
Test the MongoDB report controllers.

Namespace

Drupal\Tests\mongodb_watchdog\Functional

Code

const LEVEL_TRANSLATION = [
  LogLevel::EMERGENCY => RfcLogLevel::EMERGENCY,
  LogLevel::ALERT => RfcLogLevel::ALERT,
  LogLevel::CRITICAL => RfcLogLevel::CRITICAL,
  LogLevel::ERROR => RfcLogLevel::ERROR,
  LogLevel::WARNING => RfcLogLevel::WARNING,
  LogLevel::NOTICE => RfcLogLevel::NOTICE,
  LogLevel::INFO => RfcLogLevel::INFO,
  LogLevel::DEBUG => RfcLogLevel::DEBUG,
];