Class: Capistrano::Smartlogging::CustomLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/capistrano/smartlogging/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#oioObject

Returns the value of attribute oio.



28
29
30
# File 'lib/capistrano/smartlogging/formatter.rb', line 28

def oio
  @oio
end

Instance Method Details

#<<(msg) ⇒ Object



30
31
32
33
# File 'lib/capistrano/smartlogging/formatter.rb', line 30

def <<(msg)
  oio ? oio.write(msg) : $stdout.write(msg)
  info(msg)
end