Allow to configure LOG_LEVEL of the Rails Stack

Hi,

As an Operator I would like to define the LogLevel of the Rails Stack (when using Docker, but it’s a general feature for the core rails stack)

Possible Implementation:

instead of:
config.log_level = :info

something like:
config.log_level = ENV.fetch("LOG_LEVEL", "INFO").downcase.strip.to_sym

would allow to start the App with the ENV Vars defined

LOG_LEVEL=INFO
LOG_LEVEL=WARN
LOG_LEVEL=ERROR
etc..

Related:

Let me know if you accept pull a request for something like this.

Best Regards,
Severin

2 Likes

This topic was automatically closed after 416 days. New replies are no longer allowed.