Sha256: ee904de3acfa4f645b360124544b6ab3c09cf9a10acee1cc12959ff16d743ccb
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
module Stackster class StacksterLogger def initialize(args = {}) @logger = args[:logger] ||= Logger.new(STDOUT) unless args[:logger] @logger.datetime_format = "%Y-%m-%d %H:%M:%S" @logger.formatter = proc do |severity, datetime, progname, msg| "#{datetime}: #{msg}\n" end end @logger end def debug(msg) @logger.debug msg end def info(msg) @logger.info msg end def error(msg) @logger.error msg end end end
Version data entries
5 entries across 5 versions & 1 rubygems