edgeport - v1.0.3
    Preparing search index...

    Function resolveFacility

    • Resolves a FacilityInput to its numeric value.

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

      Parameters

      Returns number

      The numeric facility, 0 through 23.

      If the value is not a valid facility.

      1.0.0

      import { resolveFacility } from 'edgeport/syslog';

      resolveFacility('local0'); // 16
      resolveFacility(1); // 1