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.
-
Package and build information of the agent that logs.
Declaration
Swift
public var agentInfo: AgentInfo?
-
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?
-
Undocumented
Declaration
Swift
public init(agentInfo: AgentInfo? = nil, pid: Double? = nil, hostname: String? = nil, userAgent: String? = nil)
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws