Sha256: 1d791025054e61f8e28addb39ccf48971427d982f8b3461cb0a1dd5727de939b
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_semantic_logger-4.10.0 | lib/rails_semantic_logger/extensions/rails/server.rb |