Class: Geocoder::KernelLogger
- Inherits:
-
Object
- Object
- Geocoder::KernelLogger
- Includes:
- Singleton
- Defined in:
- lib/geocoder/kernel_logger.rb
Instance Method Summary collapse
Instance Method Details
#add(level, message) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/geocoder/kernel_logger.rb', line 5 def add(level, ) return unless (level) case level when ::Logger::DEBUG, ::Logger::INFO puts when ::Logger::WARN warn when ::Logger::ERROR raise when ::Logger::FATAL fail end end |