module

ArrJanitor

ArrJanitor watches Sonarr/Radarr download queues, removes and blocklists downloads that contain bad file extensions, and re-triggers a search when the episode/movie is released.

Constants

LOG_LEVEL_NAMES = "trace, debug, info, notice, warn, error, fatal, none"

The valid ::Log::Severity names, lowercased, for use in error messages when an invalid log level is supplied via CLI flag, env var, or config.

VERSION = "0.2.6"

Class methods

parse_log_level?(value : String) : Log::Severity | Nil

Parses value into a ::Log::Severity, case-insensitively, returning nil when it is not a valid level name. A thin wrapper over ::Log::Severity.parse? so callers (CLI resolver, config validation) share one parse path and one notion of "valid".

Source
setup_logging(level : Log::Severity = ::Log::Severity::Info, io : IO = STDOUT) : Nil

Configures a Crystal Log backend writing to io (stdout by default) at the given severity level.

Source

Nested types