Class: Capistrano::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano-campout/logger.rb

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
# File 'lib/capistrano-campout/logger.rb', line 11

def campout_log(level, message, line_prefix = nil)
  CampoutLogger.log(level, message, line_prefix) if CampoutLogger.setup?
  log_without_campout_logging(level, message, line_prefix)
end

#closeObject



21
22
23
24
# File 'lib/capistrano-campout/logger.rb', line 21

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