Sha256: 80cbb9839452f19516ab080c94f5b2985c021a2c45e28adf63e4978bc9aefbdb
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
module SimpleDeploy class SimpleDeployLogger 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 info(msg) @logger.info msg end def error(msg) @logger.error msg end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.3.1 | lib/simple_deploy/logger.rb |
simple_deploy-0.3.0 | lib/simple_deploy/logger.rb |