Module: BioDSL::LogHelper
- Included in:
- Pipeline
- Defined in:
- lib/BioDSL/helpers/log_helper.rb
Overview
Namespace for LogHelper.
Instance Method Summary collapse
-
#log_error(exception) ⇒ Object
Log an ERROR messge to the log file.
-
#log_ok ⇒ Object
Log an OK messge to the log file.
Instance Method Details
#log_error(exception) ⇒ Object
Log an ERROR messge to the log file.
45 46 47 48 49 50 51 52 53 |
# File 'lib/BioDSL/helpers/log_helper.rb', line 45 def log_error(exception) File.open(BioDSL::Config::LOG_FILE, 'a') do |ios| ios.puts to_s ios.puts status.to_yaml if self.respond_to? :status ios.puts 'ERROR' ios.puts exception. ios.puts exception.backtrace end end |