Class: CrudService::GenericLog

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

Overview

This class provides a Generic Logger.

Instance Method Summary collapse

Instance Method Details

#debug(str) ⇒ Object

Log a debug message



6
7
8
# File 'lib/generic_log.rb', line 6

def debug(str)
  puts "DEBUG: #{str}"
end

#error(str) ⇒ Object

Log an error message



21
22
23
# File 'lib/generic_log.rb', line 21

def error(str)
  puts "ERROR: #{str}"
end

#info(str) ⇒ Object

Log an info message



11
12
13
# File 'lib/generic_log.rb', line 11

def info(str)
  puts "INFO: #{str}"
end

#warn(str) ⇒ Object

Log a warning message



16
17
18
# File 'lib/generic_log.rb', line 16

def warn(str)
  puts "WARN: #{str}"
end