Class: Log4r::Logger

Inherits:
Object show all
Defined in:
lib/trellis/logging.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#<<(text) ⇒ Object

Rack CommonLogger middleware expects a << method



33
34
35
# File 'lib/trellis/logging.rb', line 33

def <<(text)
  info(text.delete!("\n"))
end

#write(text) ⇒ Object



37
38
39
# File 'lib/trellis/logging.rb', line 37

def write(text)
  info(text.delete!("\n"))
end