Currently, Marten's default log level is set to Log::Severity::Info. While this is appropriate for production environments, it hides valuable debugging information (such as database queries) during development. This can lead to confusion and missed opportunities for optimization.
Proposed Solution
Update the config/settings/development.cr file in the default Marten project template to include the line: config.log_level = Log::Severity::Debug. This also helps the developers to learn about this setting, which might be missed when going over the documentation
Description
Currently, Marten's default log level is set to
Log::Severity::Info
. While this is appropriate for production environments, it hides valuable debugging information (such as database queries) during development. This can lead to confusion and missed opportunities for optimization.Proposed Solution
Update the
config/settings/development.cr
file in the default Marten project template to include the line:config.log_level = Log::Severity::Debug
. This also helps the developers to learn about this setting, which might be missed when going over the documentationThis shall also be reflected in the documentation