lib/lita/default_configuration.rb in lita-4.3.2 vs lib/lita/default_configuration.rb in lita-4.4.0

- old
+ new

@@ -136,9 +136,12 @@ unless LOG_LEVELS.include?(value.to_s.downcase.strip) "must be one of: #{LOG_LEVELS.join(', ')}" end end end + config :log_formatter, type: Proc, default: (lambda do |severity, datetime, _progname, msg| + "[#{datetime.utc}] #{severity}: #{msg}\n" + end) config :admins config :error_handler, default: -> (_error) {} do validate do |value| "must respond to #call" unless value.respond_to?(:call) end