This commit addresses #39 by setting the base class of the logger to
ActiveSupport::Logger, so that JsonRailsLogger can always meet the
contract expected by a Rails logger. Without this, errors are seen when
running in development mode with the logger set to JsonRailsLogger
This commit also mixes in some minor clean-ups:
don't require rails and other peer dependencies; we assume these
will be required by applications that have this logger as a dependency
only require elements of the library from the parent
json_rails_logger.rb file
re-order the setting of the @formatter to override the wired-in
default in ActiveSupport::Logger
This commit addresses #39 by setting the base class of the logger to
ActiveSupport::Logger
, so thatJsonRailsLogger
can always meet the contract expected by a Rails logger. Without this, errors are seen when running in development mode with the logger set toJsonRailsLogger
This commit also mixes in some minor clean-ups:
rails
and other peer dependencies; we assume these will be required by applications that have this logger as a dependencyjson_rails_logger.rb
file@formatter
to override the wired-in default inActiveSupport::Logger
test_helper.rb
for the test scripts