Sha256: 061d3b606d8631856bf2b1e72666abcd210fdfb063f8e0b611717b2ee5ef8ce0
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
require 'mongoid_colored_logger/logger_decorator' module MongoidColoredLogger class Railtie < Rails::Railtie base = Mongoid::VERSION.to_f >= 3.0 ? Moped : config.mongoid initializer 'logger_decorator', :after => :initialize_logger do base.logger = MongoidColoredLogger::LoggerDecorator.new(Rails.logger) end # Make it output to STDERR in console console do |app| base.logger = MongoidColoredLogger::LoggerDecorator.new(Logger.new(STDERR)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems