Sha256: 0b41d5c8c5f35c67d165c053a6cdbe506079824e3f1b066e7c3aea49b532d360

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require "active_support/logger"

module ActiveSupport
  # More hacks to try and stop Rails from being it's own worst enemy.
  class Logger
    # Prevent Console from trying to merge loggers
    def self.logger_outputs_to?(*args)
      true
    end

    # Prevent broadcasting since SemanticLogger already supports multiple loggers
    def self.broadcast(logger)
      Module.new
    end

    def self.new(*args, **kwargs)
      SemanticLogger[self]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_semantic_logger-4.6.0 lib/rails_semantic_logger/extensions/active_support/logger.rb