Skip to content

Config: Resolve log_level setting input value to Logger constant for severity level #261

Open
@olleolleolle

Description

@olleolleolle
Contributor

This is a feature request: for config option log_level, always convert given input to a Logger constant before setting the value.

The Config log_level setting currently does no resolving, but expects it to be a Logger-compatible level setting. It is used in .setup_logger.

Use-case: call the hutch CLI with an ENV variable set to HUTCH_LOG_LEVEL=DEBUG hutch

Activity

michaelklishin

michaelklishin commented on Feb 28, 2017

@michaelklishin
Member

This is a follow-up to #260.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @olleolleolle@michaelklishin

        Issue actions

          Config: Resolve log_level setting input value to Logger constant for severity level · Issue #261 · ruby-amqp/hutch