Class: Capistrano::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/eycap/lib/ey_logger.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



17
18
19
20
# File 'lib/eycap/lib/ey_logger.rb', line 17

def close
  device.close if @needs_close
  EYLogger.close if EYLogger.setup?
end

#ey_log(level, message, line_prefix = nil) ⇒ Object Also known as: log



7
8
9
10
# File 'lib/eycap/lib/ey_logger.rb', line 7

def ey_log(level, message, line_prefix = nil)
  EYLogger.log(level, message, line_prefix) if EYLogger.setup?
  log_without_ey_logging(level, message, line_prefix)
end