Sha256: 4b19f801184b2a9ccef53ee8fee1f9bb181825ee6e262f422b40b5a79c85084c
Contents?: true
Size: 500 Bytes
Versions: 6
Compression:
Stored size: 500 Bytes
Contents
module SmallVictories class << self attr_writer :logger def logger @logger ||= Logger.new($stdout).tap do |log| log.progname = self.name log.formatter = proc do |severity, datetime, progname, msg| string = "Small Victories: " case severity when 'INFO' string.concat("👍 ") when 'ERROR' string.concat("🔥 ") end string.concat("#{msg}\n") end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems