Scribble v0.1.6 Scribble.Level View Source

Comparison and information gathering for log levels

Link to this section Summary

Link to this section Types

Link to this type

comparison() View Source
comparison() :: :lt | :gt | :eq

Link to this section Functions

Link to this function

cmp(left, right) View Source
cmp(left :: t(), right :: t()) :: comparison() | {:error, String.t()}

Link to this function

cmp!(left, right) View Source
cmp!(left :: t(), right :: t()) :: comparison()

Link to this function

get_color(level, config \\ nil) View Source
get_color(level :: t(), config :: nil | keyword()) :: color()

Link to this function

get_levelpad(level, config \\ nil) View Source
get_levelpad(level :: t(), config :: nil | keyword()) :: color()

Link to this function

get_logger_level(level, config \\ nil) View Source
get_logger_level(level :: t(), config :: nil | keyword()) :: Logger.level()

Link to this function

levels() View Source
levels() :: [t()]

Link to this function

to_integer(level) View Source
to_integer(level :: t()) :: non_neg_integer() | nil

Link to this function

to_integer!(level) View Source
to_integer!(level :: t()) :: non_neg_integer()