module Origen::LoggerMethods
Public Instance Methods
Source
# File lib/origen/logger_methods.rb, line 34 def alert(*args) options = args.last.is_a?(Hash) ? args.pop : {} args.each { |arg| Origen.log.warn arg } end
Source
# File lib/origen/logger_methods.rb, line 39 def deprecated(*lines) options = lines.last.is_a?(Hash) ? lines.pop : {} lines.flatten.each do |line| line.split(/\n/).each do |line| Origen.log.deprecate line end end end
Source
# File lib/origen/logger_methods.rb, line 29 def error(*args) options = args.last.is_a?(Hash) ? args.pop : {} args.each { |arg| Origen.log.error arg } end
Source
# File lib/origen/logger_methods.rb, line 48 def highlight lputs '' lputs '######################################################################' yield lputs '######################################################################' lputs '' end
Source
# File lib/origen/logger_methods.rb, line 18 def lputs(*args) Origen.log.lputs(*args) end
Also aliased as: lprint
Source
# File lib/origen/logger_methods.rb, line 23 def warn(*args) options = args.last.is_a?(Hash) ? args.pop : {} args.each { |arg| Origen.log.warn arg } end
Also aliased as: warning