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.
'local0'
The facility to resolve.
The numeric facility, 0 through 23.
If the value is not a valid facility.
1.0.0
import { resolveFacility } from 'edgeport/syslog';resolveFacility('local0'); // 16resolveFacility(1); // 1 Copy
import { resolveFacility } from 'edgeport/syslog';resolveFacility('local0'); // 16resolveFacility(1); // 1
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.