Sha256: bab5170668327480959631931e45b14135bb098ba9e44a18258b2c1ee5757eb0

Contents?: true

Size: 236 Bytes

Versions: 14

Compression:

Stored size: 236 Bytes

Contents

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rails_semantic_logger-4.5.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.5.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.6 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.5 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.4 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.3 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.2 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.4.0 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.3.4 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.3.3 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.3.2 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.3.1 lib/rails_semantic_logger/extensions/rails/server.rb
rails_semantic_logger-4.3.0 lib/rails_semantic_logger/extensions/rails/server.rb