Sha256: 6257226b713235a3728bc395e01733211ad8d40748b72943a8a64d5be5ff3167
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 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) $stderr.puts exception.to_s $stderr.puts exception.backtrace end def verbose(message) puts message if @options[:verbose] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tagomatic-0.1.1 | lib/tagomatic/logger.rb |