Sha256: 1b173dd8f5fa8f90b4c905dd477ea7724e656856422164a713ec4e7eacdadd17
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
# Patch the Rails::Server log_to_stdout so that it logs via SemanticLogger require "rails" module Rails class Server private undef_method :log_to_stdout if method_defined?(:log_to_stdout) def log_to_stdout wrapped_app # touch the app so the logger is set up SemanticLogger.add_appender(io: $stdout, formatter: :color) unless SemanticLogger.appenders.console_output? end end end
Version data entries
3 entries across 3 versions & 1 rubygems