Skip to content

Commit

Permalink
Add formatter= method to make the logging gem compatible with rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ag4ta committed Nov 16, 2023
1 parent df41715 commit 1316c31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/logging/rails_compat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module RailsCompat
# A no-op implementation of the `formatter` method.
def formatter; end

# A no-op implementation of the `formatter=` method.
def formatter=(_formatter); end

# A no-op implementation of the +silence+ method. Setting of log levels
# should be done during the Logging configuration. It is the author's
# opinion that overriding the log level programmatically is a logical
Expand Down

0 comments on commit 1316c31

Please sign in to comment.