Class: Merb::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/appengine-apis/merb-logger.rb

Overview

Modifies the Merb Logger class to save logs using the Logging API instead of writing directly to a stream.

Instance Method Summary collapse

Instance Method Details

#<<(string = nil) ⇒ Object Also known as: push



29
30
31
32
# File 'lib/appengine-apis/merb-logger.rb', line 29

def <<(string = nil)
  AppEngine::ApiProxy.log(
      AppEngine::ApiProxy::LogRecord::Level::info, string)
end