Sha256: 769215e1ce07ea7744509cdf17b1ba6625f66b5e8005874cdee713ce9e234b3e

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

module Mongoid
  class Logger

    delegate :info, :debug, :error, :fatal, :unknown, :to => :logger, :allow_nil => true

    def warn(message)
      logger.warn(message) if logger && logger.respond_to?(:warn)
    end

    def logger
      Mongoid.logger
    end

    def inspect
      "#<Mongoid::Logger:0x#{object_id.to_s(16)} @logger=#{logger.inspect}>"
    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mongoid-2.0.0.beta.11 lib/mongoid/logger.rb
mongoid-2.0.0.beta.10 lib/mongoid/logger.rb
mongoid-2.0.0.beta.12 lib/mongoid/logger.rb
mongoid-locomotive-2.0.0.beta9 lib/mongoid/logger.rb