Method: Hanami::Config::Logger#formatter
- Defined in:
- lib/hanami/config/logger.rb
permalink #formatter ⇒ Symbol, ::Logger::Formatter
Sets or returns the logger’s formatter.
This may be a name that matches a formatter registered with ‘Dry::Logger`, which includes `:string`, `:rack` and `:json`.
This may also be an instance of Ruby’s built-in ‘::Logger::Formatter` or any compatible object.
Defaults to ‘:json` for the production environment, and `:rack` for all others.
66 |
# File 'lib/hanami/config/logger.rb', line 66 setting :formatter, default: :string |