Class: Oboe::Logger

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

Instance Method Summary collapse

Instance Method Details

#debug(msg, exception = nil) ⇒ Object

Debug message



33
34
35
# File 'lib/oboe/logger.rb', line 33

def debug(msg, exception = nil)
  Oboe.logger.debug(string) if Oboe.logger
end

#error(msg, exception = nil) ⇒ Object

Error message



18
19
20
# File 'lib/oboe/logger.rb', line 18

def error(msg, exception = nil)
  Oboe.logger.error(string) if Oboe.logger
end

#fatal(string, exception = nil) ⇒ Object

Fatal message



13
14
15
# File 'lib/oboe/logger.rb', line 13

def fatal(string, exception = nil)
  Oboe.logger.fatal(string) if Oboe.logger
end

#info(msg, exception = nil) ⇒ Object

Info message



28
29
30
# File 'lib/oboe/logger.rb', line 28

def info(msg, exception = nil)
  Oboe.logger.info(string) if Oboe.logger
end

#warn(msg, exception = nil) ⇒ Object

Warn message



23
24
25
# File 'lib/oboe/logger.rb', line 23

def warn(msg, exception = nil)
  Oboe.logger.warn(string) if Oboe.logger
end