LogHost

public class LogHost : Codable

Information about the host environment in which a Log object is created. This information should only be logged once by each agent, e.g. initially at startup.

Attributes.

  • Package and build information of the agent that logs.

    Declaration

    Swift

    public var agentInfo: AgentInfo?
  • pid

    Process ID of the application that generates a log record (optional).

    Declaration

    Swift

    public var pid: Double?
  • Hostname of the application that generates a log record (optional).

    Declaration

    Swift

    public var hostname: String?
  • User agent of the application that generates a log record (optional). May be specified by apps that run in a browser.

    Declaration

    Swift

    public var userAgent: String?

Initializers.

Codable methods.

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws