FHG-IMW/epo-ops

View on GitHub
lib/epo_ops/logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
module EpoOps
  # Simple logger writing some notifications to standard output.
  class Logger
    # Just hands the parameter to puts.
    def self.log(output)
      puts output
    end

    # Debug logging only
    def self.debug(output)
      log(output) if ENV['DEBUG']
    end

  end
end