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

Version Path
ayadn-3.0 lib/ayadn/logs.rb
ayadn-2.1 lib/ayadn/logs.rb
ayadn-2.0.12 lib/ayadn/logs.rb
ayadn-2.0.11 lib/ayadn/logs.rb
ayadn-2.0.10 lib/ayadn/logs.rb
ayadn-2.0.9 lib/ayadn/logs.rb
ayadn-2.0.8 lib/ayadn/logs.rb
ayadn-2.0.7 lib/ayadn/logs.rb
ayadn-2.0.6 lib/ayadn/logs.rb
ayadn-2.0.5 lib/ayadn/logs.rb
ayadn-2.0.4 lib/ayadn/logs.rb
ayadn-2.0.3 lib/ayadn/logs.rb
ayadn-2.0.2 lib/ayadn/logs.rb
ayadn-2.0.1 lib/ayadn/logs.rb
ayadn-2.0 lib/ayadn/logs.rb
ayadn-1.8.2 lib/ayadn/logs.rb
ayadn-1.8.1 lib/ayadn/logs.rb
ayadn-1.8.0 lib/ayadn/logs.rb
ayadn-1.7.7 lib/ayadn/logs.rb
ayadn-1.7.6 lib/ayadn/logs.rb