Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PsrSeverityMapperInterface.php

PsrSeverityMapperInterface::RFC_CODE

Severity code according to rfc5424 (Syslog Protocol)

See also

: https://datatracker.ietf.org/doc/html/rfc5424#page-10

File

vendor/open-telemetry/sdk/Logs/PsrSeverityMapperInterface.php, line 15

Class

PsrSeverityMapperInterface

Namespace

OpenTelemetry\SDK\Logs

Code

public const RFC_CODE = [
    // Detailed debug information.
PsrLogLevel::DEBUG => 7,
    // Interesting events. Examples: User logs in, SQL logs.
PsrLogLevel::INFO => 6,
    // Normal but significant events.
PsrLogLevel::NOTICE => 5,
    // Exceptional occurrences that are not errors. Examples: Use of deprecated APIs, poor use of an API,
    // undesirable things that are not necessarily wrong.
PsrLogLevel::WARNING => 4,
    // Runtime errors that do not require immediate action but should typically be logged and monitored.
PsrLogLevel::ERROR => 3,
    // Critical conditions. Example: Application component unavailable, unexpected exception.
PsrLogLevel::CRITICAL => 2,
    // Action must be taken immediately. Example: Entire website down, database unavailable, etc.
    // This should trigger the alerts and wake you up.
PsrLogLevel::ALERT => 1,
    // Emergency: system is unusable.
PsrLogLevel::EMERGENCY => 0,
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal