ark::logging::HttpLogRegistry

Defined in header “ark/logging/http_log_registry.hh”.


A HTTP-based log registry. Reads files from HTTP directly, assuming that the key name is appended to some base URL.

Methods

  • HttpLogRegistry(HttpLogRegistryConfiguration config)
    Initializes a new log registry.

  • ~HttpLogRegistry()
    Virtual destructor, for cleanup.

  • core::Url key_to_url(const std::string & key_name)
    Returns a URL that is suitable for requesting the given key name from this registry. If this is a file registry, this could be a file path. If this is a remote registry, it would be the URL to that file.

  • std::string read_into_buffer(const std::string & key_name)
    Reads the given path into a string, and returns that string to you. This can block for some time, and will throw if there is an error.

  • LogFileHandlePtr read(const std::string & key_name)
    Opens the given file handle, based on key name. This returns a shared pointer to the file handle. You own the lifetime of this object you can invoke close() or let it fall out of scope as you wish.