Sha256: 5041be5cad457aec261a4a2489f4962565cc7af72e3e85b20d87c750c665312d

Contents?: true

Size: 490 Bytes

Versions: 10

Compression:

Stored size: 490 Bytes

Contents

require 'logger'

module Vapir
  class VapirLogger < Logger
    def initialize(filName, logsToKeep, maxLogSize)
      super(filName, logsToKeep, maxLogSize)
      self.level = Logger::DEBUG
      self.datetime_format = "%d-%b-%Y %H:%M:%S"
      self.debug("Vapir starting")
    end
  end
  
  class DefaultLogger < Logger
    def initialize
      super(STDERR)
      self.level = Logger::WARN
      self.datetime_format = "%d-%b-%Y %H:%M:%S"
      self.info "Log started"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vapir-ie-1.10.1 lib/vapir-ie/logger.rb
vapir-ie-1.10.0 lib/vapir-ie/logger.rb
vapir-ie-1.9.0 lib/vapir-ie/logger.rb
vapir-ie-1.8.1 lib/vapir-ie/logger.rb
vapir-ie-1.8.0 lib/vapir-ie/logger.rb
vapir-ie-1.7.2 lib/vapir-ie/logger.rb
vapir-ie-1.7.1 lib/vapir-ie/logger.rb
vapir-ie-1.7.1.rc1 lib/vapir-ie/logger.rb
vapir-ie-1.7.0 lib/vapir-ie/logger.rb
vapir-ie-1.7.0.rc1 lib/vapir-ie/logger.rb