Class: Incline::JsonLogger

Inherits:
ActiveSupport::Logger
  • Object
show all
Defined in:
lib/incline/json_logger.rb

Overview

Overrides the default formatter for the base logger.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ JsonLogger

Sets the formatter to Incline::JsonLogFormatter.



11
12
13
14
# File 'lib/incline/json_logger.rb', line 11

def initialize(*args)
  super
  @formatter = ::Incline::JsonLogFormatter.new
end