edgeport - v1.0.3
    Preparing search index...

    Function resolveSeverity

    • Resolves a SeverityInput to its numeric value.

      Accepts the enum, a raw number, or a lowercase name such as 'info'. The range is checked so an out-of-range number or unknown name fails fast.

      Parameters

      Returns number

      The numeric severity, 0 through 7.

      If the value is not a valid severity.

      1.0.0

      import { resolveSeverity } from 'edgeport/syslog';

      resolveSeverity('info'); // 6
      resolveSeverity(3); // 3