Sha256: eadb7704f7a897fa6b057a807d8d8d72b5db1225b1df8f12d74263c7602092b0

Contents?: true

Size: 256 Bytes

Versions: 54

Compression:

Stored size: 256 Bytes

Contents

require 'logger'

module Dugway
  class Logger < ::Logger
    def initialize
      Dir.mkdir(dir) unless File.exists?(dir)
      super(File.join(dir, 'dugway.log'))
    end

    def dir
      File.join(Dir.pwd, 'log')
    end

    alias write <<
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
dugway-0.6.4 lib/dugway/logger.rb
dugway-0.6.3 lib/dugway/logger.rb
dugway-0.6.2 lib/dugway/logger.rb
dugway-0.6.1 lib/dugway/logger.rb
dugway-0.6.0 lib/dugway/logger.rb
dugway-0.5.9 lib/dugway/logger.rb
dugway-0.5.8 lib/dugway/logger.rb
dugway-0.5.7 lib/dugway/logger.rb
dugway-0.5.6 lib/dugway/logger.rb
dugway-0.5.4 lib/dugway/logger.rb
dugway-0.5.3 lib/dugway/logger.rb
dugway-0.5.2 lib/dugway/logger.rb
dugway-0.5.1 lib/dugway/logger.rb
dugway-0.5.0 lib/dugway/logger.rb