Module: Cure::Log
- Included in:
- Builder::Candidate, Cli::Command, Coordinator, Dsl::DslHandler, Export::BaseProcessor, Extract::Extractor, Planner, Transformation::Candidate, Transformation::Transform, Validator::Candidate
- Defined in:
- lib/cure/log.rb
Instance Method Summary collapse
- #log_debug(message) ⇒ Object
- #log_error(message, exception = nil) ⇒ Object
- #log_info(message) ⇒ Object
- #log_trace(_message) ⇒ Object
- #log_warn(message) ⇒ Object
Instance Method Details
#log_debug(message) ⇒ Object
15 16 17 |
# File 'lib/cure/log.rb', line 15 def log_debug() Cure.logger.debug() end |
#log_error(message, exception = nil) ⇒ Object
31 32 33 34 |
# File 'lib/cure/log.rb', line 31 def log_error(, exception=nil) Cure.logger.error() Cure.logger.error(exception.backtrace.join("\n")) unless exception.nil? end |
#log_info(message) ⇒ Object
20 21 22 |
# File 'lib/cure/log.rb', line 20 def log_info() Cure.logger.info() end |
#log_trace(_message) ⇒ Object
8 9 10 11 12 |
# File 'lib/cure/log.rb', line 8 def log_trace() # Ruby default logger doesnt have trace, so my version # is to just uncomment it when you need it for now. # Cure.logger.trace(message) end |