Sha256: d2ae2783b4f6bc5eb88237b3ee0d3951587533b2207fa2906efd7529ce6b0434
Contents?: true
Size: 372 Bytes
Versions: 3
Compression:
Stored size: 372 Bytes
Contents
module Heirloom class HeirloomLogger def initialize(args) @logger = args[:logger] ||= Logger.new(STDOUT) @logger.datetime_format = "%Y-%m-%d %H:%M:%S" @logger.formatter = proc do |severity, datetime, progname, msg| "#{datetime}: #{msg}\n" end @logger end def info(msg) @logger.info msg end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.1.3 | lib/heirloom/logger.rb |
heirloom-0.1.2 | lib/heirloom/logger.rb |
heirloom-0.1.1 | lib/heirloom/logger.rb |