Sha256: 8dcf9d293bf0e0a994ee331349f588f8c69c0199d1dcbb42455449d232a12c35
Contents?: true
Size: 411 Bytes
Versions: 4
Compression:
Stored size: 411 Bytes
Contents
# encoding: utf-8 module Nokaya class Logs class << self attr_accessor :rec end def self.create_logger home = "#{Dir.home}/.nokaya" Dir.mkdir(home) unless Dir.exist?(home) @rec = Logger.new(home + "/log", 'monthly') @rec.formatter = proc do |severity, datetime, progname, msg| "#{datetime} (#{VERSION}) #{severity} * #{msg}\n" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nokaya-0.1.6 | lib/nokaya/logs.rb |
nokaya-0.1.5 | lib/nokaya/logs.rb |
nokaya-0.1.4 | lib/nokaya/logs.rb |
nokaya-0.1.3 | lib/nokaya/logs.rb |