Skip to content

Default log level #174

@mrahul17

Description

@mrahul17

This is a follow up on this issue #59
This gem expects a log level to be explicitly provided in the yaml/environment.rb files failing which it assumes the WARN level as seen here

logger.level = config.log_level || Logger::WARN

Will it better if we fallback to Rails.logger.level if nothing is specified? I think users would expect LogStasher to use the same severity level as configured for Rails.
I am willing to make this change if it sounds good, or atleast add the current way to documentation because I suspect this is going to be a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions