Sha256: b6ef2ae58ab101521cc07092ca34bf1c67b0aa1ae98c67d492bfc7294bb7f025

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

module Tagomatic

  class Logger

    def initialize(options)
      @options = options
    end

    def error(message, optional_exception = nil)
      puts "ERROR: #{message}"
      exception optional_exception if optional_exception
    end

    def exception(exception)
      puts exception.to_s
      puts exception.backtrace
    end

    def verbose(message)
      puts message if @options[:verbose]
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tagomatic-0.1.9 lib/tagomatic/logger.rb
tagomatic-0.1.8 lib/tagomatic/logger.rb
tagomatic-0.1.7 lib/tagomatic/logger.rb
tagomatic-0.1.6 lib/tagomatic/logger.rb
tagomatic-0.1.5 lib/tagomatic/logger.rb
tagomatic-0.1.4 lib/tagomatic/logger.rb
tagomatic-0.1.3 lib/tagomatic/logger.rb
tagomatic-0.1.2 lib/tagomatic/logger.rb