Module: YardJunk::Logger::Mixin

Defined in:
lib/yard-junk/logger.rb

Instance Method Summary collapse

Instance Method Details

#backtrace(exception, level_meth = :error) ⇒ Object



75
76
77
# File 'lib/yard-junk/logger.rb', line 75

def backtrace(exception, level_meth = :error)
  super if %i[error fatal].include?(level_meth)
end

#debug(msg) ⇒ Object



62
63
64
65
# File 'lib/yard-junk/logger.rb', line 62

def debug(msg)
  YardJunk::Logger.instance.notify(msg)
  super
end

#error(msg) ⇒ Object



71
72
73
# File 'lib/yard-junk/logger.rb', line 71

def error(msg)
  YardJunk::Logger.instance.register(msg, :error)
end

#warn(msg) ⇒ Object



67
68
69
# File 'lib/yard-junk/logger.rb', line 67

def warn(msg)
  YardJunk::Logger.instance.register(msg, :warn)
end