Skip to main content
Version: edge

severity

The severity module defines severity_number values and associated utility functions

Constants

DEBUG

type: U64

Debug - default level

DEBUG2

type: U64

Debug - level 2

DEBUG3

type: U64

Debug - level 3

DEBUG4

type: U64

Debug - level 4

ERROR

type: U64

Non-fatal ( recoverable ) Error - default level

ERROR2

type: U64

Non-fatal ( recoverable ) Error - level 2

ERROR3

type: U64

Non-fatal ( recoverable ) Error - level 3

ERROR4

type: U64

Non-fatal ( recoverable ) Error - level 4

FATAL

type: U64

Fatal ( recoverable ) Error - default level

FATAL2

type: U64

Fatal ( recoverable ) Error - level 2

FATAL3

type: U64

Fatal ( recoverable ) Error - level 3

FATAL4

type: U64

Fatal ( recoverable ) Error - level 4

INFO

type: U64

Informational - default level

INFO2

type: U64

Informational - level 2

INFO3

type: U64

Informational - level 3

INFO4

type: U64

Informational - level 4

TRACE

type: U64

Trace - default level

TRACE2

type: U64

Trace - level 2

TRACE3

type: U64

Trace - level 3

TRACE4

type: U64

Trace - level 4

UNSPECIFIED

type: U64

The severity wasn't specified

WARN

type: U64

Warning - default level

WARN2

type: U64

Warning - level 2

WARN3

type: U64

Warning - level 3

WARN4

type: U64

Warning - level 4

Functions

indicates_error(severity_number)

Given a severity_number is it indicative of a non-fatal or fatal error

Returns a bool

make_default()

Returns the default severity_number

The default severity_number

to_string(severity_number)

Given a severity_number returns its normative string representation

Returns a string