diff --git a/packages/lumberaxe/docs/CHANGELOG.md b/packages/lumberaxe/docs/CHANGELOG.md index fcaa9066..cf49dbcc 100644 --- a/packages/lumberaxe/docs/CHANGELOG.md +++ b/packages/lumberaxe/docs/CHANGELOG.md @@ -1,5 +1,9 @@ ## [Unreleased] +## [0.1.4] - 2023-1-1 + +- Add LoggerSilence module to fix sprockets-rails compatibility + ## [0.1.3] - 2022-10-18 - Fix tag keys on log formatter diff --git a/packages/lumberaxe/lib/lumberaxe/logger.rb b/packages/lumberaxe/lib/lumberaxe/logger.rb index 8abe85ca..c22aa540 100644 --- a/packages/lumberaxe/lib/lumberaxe/logger.rb +++ b/packages/lumberaxe/lib/lumberaxe/logger.rb @@ -2,6 +2,8 @@ module Lumberaxe class Logger < ::ActiveSupport::Logger + include ActiveSupport::LoggerSilence + cattr_accessor(:log_level) { :debug } def initialize(output = $stdout, progname:, level: log_level) @@ -12,6 +14,7 @@ def initialize(output = $stdout, progname:, level: log_level) self.formatter = JSONFormatter.new extend ActiveSupport::TaggedLogging + extend ActiveSupport::LoggerSilence end end end diff --git a/packages/lumberaxe/lib/lumberaxe/version.rb b/packages/lumberaxe/lib/lumberaxe/version.rb index 972f3c23..39eb7473 100644 --- a/packages/lumberaxe/lib/lumberaxe/version.rb +++ b/packages/lumberaxe/lib/lumberaxe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lumberaxe - VERSION = "0.1.3" + VERSION = "0.1.4" end