module Origen::LoggerMethods

Public Instance Methods

alert(*args) click to toggle 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
deprecated(*lines) click to toggle 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
error(*args) click to toggle 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
highlight() { || ... } click to toggle source
# File lib/origen/logger_methods.rb, line 48
def highlight
  lputs ''
  lputs '######################################################################'
  yield
  lputs '######################################################################'
  lputs ''
end
log() click to toggle source
# File lib/origen/logger_methods.rb, line 14
def log
  @log ||= Origen.log
end
lprint(*args)
Alias for: lputs
lputs(*args) click to toggle source
# File lib/origen/logger_methods.rb, line 18
def lputs(*args)
  Origen.log.lputs(*args)
end
Also aliased as: lprint
warn(*args) click to toggle 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
warning(*args)
Alias for: warn