Sha256: c1c434afaaf5c5ffbab2ede9dc2d73a000c9a81bed5a01e0ef7879de3cf660cf

Contents?: true

Size: 254 Bytes

Versions: 17

Compression:

Stored size: 254 Bytes

Contents

# Patch the Rails::Server log_to_stdout so that it logs via SemanticLogger
Rails::Server
module Rails #:nodoc:
  class Server #:nodoc:
    private

    def log_to_stdout
      SemanticLogger.add_appender(io: $stdout, formatter: :color)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_semantic_logger-4.2.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.2.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.1.3 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.1.2 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.1.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.1.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.0.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.0.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.0.0.rc1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.0.0.beta2 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.0.0.beta1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-3.4.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-3.4.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-3.3.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-3.3.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-3.1.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-3.1.0 lib/rails_semantic_logger/extensions/rails/server.rb