Class: Heartcheck::Logger

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

Overview

A simple Interface to log messages

Class Method Summary collapse

Class Method Details

.debug(message) ⇒ void

This method returns an undefined value.

log message with debug level

Parameters:

  • message (String)

    message to log


8
9
10
# File 'lib/heartcheck/logger.rb', line 8

def self.debug(message)
  logger(:debug, message)
end

.error(message) ⇒ void

This method returns an undefined value.

log message with error level

Parameters:

  • message (String)

    message to log


35
36
37
# File 'lib/heartcheck/logger.rb', line 35

def self.error(message)
  logger(:error, message)
end

.info(message) ⇒ void

This method returns an undefined value.

log message with info level

Parameters:

  • message (String)

    message to log


17
18
19
# File 'lib/heartcheck/logger.rb', line 17

def self.info(message)
  logger(:info, message)
end

.warn(message) ⇒ void

This method returns an undefined value.

log message with warn level

Parameters:

  • message (String)

    message to log


26
27
28
# File 'lib/heartcheck/logger.rb', line 26

def self.warn(message)
  logger(:warn, message)
end