Sha256: 50efe4114519a040a0cfc484c4fee55c1f16198103633007de26e9f7f7caf143
Contents?: true
Size: 617 Bytes
Versions: 26
Compression:
Stored size: 617 Bytes
Contents
# encoding: utf-8 module Ayadn class Logs class << self attr_accessor :rec, :nr end def self.create_logger @rec = Logger.new(Settings.config[:paths][:log] + "/ayadn.log", 'monthly') @rec.formatter = proc do |severity, datetime, progname, msg| "#{datetime} (#{Settings.config[:version]}) #{severity} * #{msg}\n" end @nr = Logger.new(Settings.config[:paths][:log] + "/nicerank.log", 'monthly') @nr.formatter = proc do |severity, datetime, progname, msg| "#{datetime} (#{Settings.config[:version]}) #{severity} * #{msg}\n" end end end end
Version data entries
26 entries across 26 versions & 1 rubygems