Class: FortuneTeller::Logger

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

Constant Summary collapse

DEBUG_LEVEL =
nil

Class Method Summary collapse

Class Method Details

.log(message, msg_level = 0) ⇒ Object



4
5
6
# File 'lib/fortune_teller/logger.rb', line 4

def self.log message, msg_level = 0
  puts message if DEBUG_LEVEL && msg_level >= DEBUG_LEVEL
end