Sha256: 3ad0c190edcd86c84cb18154d256e0f414bb25ebceca2aa7455a2c84d4fd7466
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
module MotionVj module Logger def self.info(msg) $stdout.puts format(msg, 'INFO') end def self.error(msg) $stderr.puts format(msg, 'ERROR') end private def self.format(msg, type) "[motionvj][#{Time.now.utc.strftime("%Y-%m-%d %H:%M:%S %Z")}][#{type}]: #{msg}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion_vj-0.1.0 | lib/motion_vj/logger.rb |