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