Skip to main content

HttpRequestLogTemplate

Namespace: RA.Utilities.Logging.Shared.Models.HttpLog

The HttpRequestLogTemplate class is a specialized model used for creating structured log entries for an HTTP request. It inherits from BaseHttpLogTemplate to include common properties and adds details specific to the request itself.

Properties

These are the properties defined directly on the HttpRequestLogTemplate class.

PropertyTypeDescriptionInherited
RequestIdstring?A unique identifier generated for the request, used for correlation across logs.Inherited from BaseHttpLogTemplate
TraceIdentifierstring?The identifier from HttpContext.TraceIdentifier, used for end-to-end tracing within the ASP.NET Core pipeline.Inherited from BaseHttpLogTemplate
Pathstring?The URI path of the request (e.g., /api/users/123).Inherited from BaseHttpLogTemplate
RequestedOnDateTimeThe UTC timestamp indicating when the log object was created.Inherited from BaseHttpLogTemplate
RemoteAddressstring?The client's IP address (for incoming requests) or the target server's host name/IP (for outgoing requests).Inherited from BaseHttpLogTemplate
Schemastring?The scheme of the request URI (e.g., "http" or "https").-
Methodstring?The HTTP method used by the request (e.g., "GET", "POST").-
Hoststring?The host name from the request, typically from the Host header.-
QueryStringstring?The query string portion of the request URI.-
RequestHeadersIDictionary<string, string>?A dictionary containing the HTTP headers sent with the request.-
RequestBodyobject?The body of the HTTP request, if any.-