Class: EpoOps::Logger

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

Overview

Simple logger writing some notifications to standard output.

Class Method Summary collapse

Class Method Details

.debug(output) ⇒ Object

Debug logging only



10
11
12
# File 'lib/epo_ops/logger.rb', line 10

def self.debug(output)
  log(output) if ENV['DEBUG']
end

.log(output) ⇒ Object

Just hands the parameter to puts.



5
6
7
# File 'lib/epo_ops/logger.rb', line 5

def self.log(output)
  puts output
end