Class: Mongoid::Logger
Overview
The Mongoid logger which wraps some other ruby compliant logger class.
Instance Method Summary collapse
-
#inspect ⇒ String
Inspect the logger.
-
#logger ⇒ Logger
Get the mongoid logger.
-
#warn(message) ⇒ Object
Emit a warning log message.
Instance Method Details
#inspect ⇒ String
Inspect the logger.
41 42 43 |
# File 'lib/mongoid/logger.rb', line 41 def inspect "#<Mongoid::Logger:0x#{object_id.to_s(16)} @logger=#{logger.inspect}>" end |
#logger ⇒ Logger
Get the mongoid logger.
31 32 33 |
# File 'lib/mongoid/logger.rb', line 31 def logger Mongoid.logger end |
#warn(message) ⇒ Object
Emit a warning log message.
21 22 23 |
# File 'lib/mongoid/logger.rb', line 21 def warn() logger.warn() if logger && logger.respond_to?(:warn) end |