Sha256: e0165a538fe1bf16f1b88c50b785212cc3877235badd9f4cd060bc03032f8b6f
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 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.2.0 | lib/motion_vj/logger.rb |