Module: Cuporter

Defined in:
lib/cuporter/filter.rb,
lib/cuporter/logging.rb,
lib/cuporter/document.rb,
lib/cuporter/node/types.rb,
lib/cuporter/node/sorting.rb,
lib/cuporter/feature_parser.rb,
lib/cuporter/formatters/csv.rb,
lib/cuporter/node/node_base.rb,
lib/cuporter/node/numbering.rb,
lib/cuporter/node/totalling.rb,
lib/cuporter/document/assets.rb,
lib/cuporter/formatters/text.rb,
lib/cuporter/node/tagged_node.rb,
lib/cuporter/report/tag_report.rb,
lib/cuporter/report/report_base.rb,
lib/cuporter/report/tree_report.rb,
lib/cuporter/report/feature_report.rb,
lib/cuporter/document/html_document.rb,
lib/cuporter/feature_parser/language.rb,
lib/cuporter/feature_parser/node_parser.rb,
lib/cuporter/feature_parser/parser_base.rb,
lib/cuporter/feature_parser/tag_nodes_parser.rb

Overview

Copyright 2011 ThoughtWorks, Inc. Licensed under the MIT License

Defined Under Namespace

Modules: Document, FeatureParser, Formatters, Logging, Node Classes: FeatureReport, Filter, ReportBase, TagReport, TreeReport

Class Method Summary collapse

Class Method Details

.log_error(exception_obj, *messages) ⇒ Object



3
4
5
6
7
# File 'lib/cuporter/logging.rb', line 3

def self.log_error(exception_obj, *messages)
  ex = "\n\t#{exception_obj.class}: #{exception_obj.message}"
  ex += "\n\t#{exception_obj.backtrace.join("\n\t")}"
  Logging.error_logger.warn(messages.join(' ') + ex)
end