Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/logger_ext.rb

Instance Method Summary collapse

Instance Method Details

#debug(*args, &block) ⇒ Object

Log a DEBUG message.



29
30
31
# File 'lib/logger_ext.rb', line 29

def debug(*args, &block)
  log_with_options(DEBUG, *args, &block)
end

#error(*args, &block) ⇒ Object

Log an ERROR message.



44
45
46
# File 'lib/logger_ext.rb', line 44

def error(*args, &block)
  log_with_options(ERROR, *args, &block)
end

#fatal(*args, &block) ⇒ Object

Log a FATAL message.



49
50
51
# File 'lib/logger_ext.rb', line 49

def fatal(*args, &block)
  log_with_options(FATAL, *args, &block)
end

#info(*args, &block) ⇒ Object

Log an INFO message.



34
35
36
# File 'lib/logger_ext.rb', line 34

def info(*args, &block)
  log_with_options(INFO, *args, &block)
end

#unknown(*args, &block) ⇒ Object

Log an UNKNOWN message.



54
55
56
# File 'lib/logger_ext.rb', line 54

def unknown(*args, &block)
  log_with_options(UNKNOWN, *args, &block)
end

#warn(*args, &block) ⇒ Object

Log a WARN message.



39
40
41
# File 'lib/logger_ext.rb', line 39

def warn(*args, &block)
  log_with_options(WARN, *args, &block)
end