Interface WebServerAccessLog

  • All Superinterfaces:
    Descriptor, LogDescriptor, java.io.Serializable

    public interface WebServerAccessLog
    extends LogDescriptor
    Contains a sanitized web server access log file from a torproject.org web server.

    Parsing non-sanitized web server access logs from torproject.org web servers or other web servers is not explicitly supported, but may work anyway.

    Since:
    2.2.0
    • Method Detail

      • getLogDate

        java.time.LocalDate getLogDate()
        Returns the date when requests contained in the log have been started, which is parsed from the log file path.

        Typical web server access logs may contain date information in their file path, too, but that would be the date when the log file was rotated, which is not necessary the same date as the date in contained request lines.

        Since:
        2.2.0
      • getPhysicalHost

        java.lang.String getPhysicalHost()
        Returns the hostname of the physical host writing this log file, which is parsed from the log file path.

        A physical host can serve multiple virtual hosts, and a virtual host can be served by multiple physical hosts.

        Since:
        2.2.0
      • getVirtualHost

        java.lang.String getVirtualHost()
        Returns the hostname of the virtual host that this log file was written for, which is parsed from the log file path.

        A physical host can serve multiple virtual hosts, and a virtual host can be served by multiple physical hosts.

        Since:
        2.2.0