Sha256: f8529f4aede6f9c4447b0dc375fcf6195282078756b2be55c3666bdbd1dec1e6

Contents?: true

Size: 313 Bytes

Versions: 6

Compression:

Stored size: 313 Bytes

Contents

require 'logger'

module SimplePvr
  class PvrLogger
    @@logger = Logger.new(STDOUT)
    @@logger.formatter = proc do |severity, datetime, progname, msg|
      "[#{datetime.strftime('%Y-%m-%d %H:%M:%S')}] #{severity} #{msg}\n"
    end
  
    def self.info(message)
      @@logger.info(message)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_pvr-1.1.0 lib/simple_pvr/pvr_logger.rb
simple_pvr-1.0.0 lib/simple_pvr/pvr_logger.rb
simple_pvr-0.0.4 lib/simple_pvr/pvr_logger.rb
simple_pvr-0.0.3 lib/simple_pvr/pvr_logger.rb
simple_pvr-0.0.2 lib/simple_pvr/pvr_logger.rb
simple_pvr-0.0.1 lib/simple_pvr/pvr_logger.rb