EcsElixirCore.Domain.Model.EcsMiddleware.Value.EcsLogLevel (ecs_elixir_core v1.0.0)

Copy Markdown

Validator for ECS log levels.

Summary

Functions

Returns the list of all valid ECS log level names.

Returns true when the given string is a valid level (nil is accepted as default).

Functions

all()

@spec all() :: [String.t()]

Returns the list of all valid ECS log level names.

valid?(level)

@spec valid?(String.t() | nil) :: boolean()

Returns true when the given string is a valid level (nil is accepted as default).