OzMcp.LogLevel (OzMcp v0.9.0)

Copy Markdown View Source

The levels of notifications/message (RFC 5424 severities), from the lowest to the highest.

A session receives a message when the level of the message is equal to or higher than the level that the client set with logging/setLevel.

Summary

Functions

The levels, from the lowest to the highest severity.

True when a session at session_level receives a message at level.

Types

t()

@type t() ::
  :debug | :info | :notice | :warning | :error | :critical | :alert | :emergency

Functions

is_level(level)

(macro)

levels()

@spec levels() :: [t()]

The levels, from the lowest to the highest severity.

wanted?(session_level, level)

@spec wanted?(term(), term()) :: boolean()

True when a session at session_level receives a message at level.

false when the session has no level (nil) and when one of the two values is not a level: a snapshot module can return any value and the session must not stop because of it.