Sha256: 78b96ee4e0c17418f47ce2394383982e38fc390e75fff878d26556d7c2895156

Contents?: true

Size: 334 Bytes

Versions: 20

Compression:

Stored size: 334 Bytes

Contents

module TestServer
  class AccessLogger
    def initialize(path)
      @logger = ::Logger.new(::File.expand_path(path))
    rescue Errno::ENOENT
      raise Exceptions::AccessLogPathInvalid, JSON.dump(file: path, directory: ::File.dirname(path) )
    end

    def write(*args, &block)
      @logger.<<(*args, &block)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
test_server-0.5.2 lib/test_server/access_logger.rb
test_server-0.5.1 lib/test_server/access_logger.rb
test_server-0.5.0 lib/test_server/access_logger.rb
test_server-0.4.1 lib/test_server/access_logger.rb
test_server-0.4.0 lib/test_server/access_logger.rb
test_server-0.3.7 lib/test_server/access_logger.rb
test_server-0.3.6 lib/test_server/access_logger.rb
test_server-0.3.5 lib/test_server/access_logger.rb
test_server-0.3.4 lib/test_server/access_logger.rb
test_server-0.3.2 lib/test_server/access_logger.rb
test_server-0.3.1 lib/test_server/access_logger.rb
test_server-0.2.4 lib/test_server/access_logger.rb
test_server-0.2.3 lib/test_server/access_logger.rb
test_server-0.2.2 lib/test_server/access_logger.rb
test_server-0.2.1 lib/test_server/access_logger.rb
test_server-0.2.0 lib/test_server/access_logger.rb
test_server-0.1.2 lib/test_server/access_logger.rb
test_server-0.1.1 lib/test_server/access_logger.rb
test_server-0.1.0 lib/test_server/access_logger.rb
test_server-0.0.11 lib/test_server/access_logger.rb