ubeac / ubeac-api

Source of uBeac .NET Core packages
3 stars 2 forks source link

Logging #72

Closed ilhesam closed 2 years ago

ilhesam commented 2 years ago

@pournasserian Sample: { "@t": "2022-04-07T10:46:46.3386748Z", "@mt": "{HostingRequestFinishedLog:l}", "@m": "Request finished HTTP/1.1 GET https://localhost:44365/API/Roles/GetAll - - - 200 - application/json;+charset=utf-8 4274.8903ms", "@i": "b7c77741", "@r": [ "Request finished HTTP/1.1 GET https://localhost:44365/API/Roles/GetAll - - - 200 - application/json;+charset=utf-8 4274.8903ms" ], "ElapsedMilliseconds": 4274.8903, "StatusCode": 200, "ContentType": "application/json; charset=utf-8", "ContentLength": null, "Protocol": "HTTP/1.1", "Method": "GET", "Scheme": "https", "Host": "localhost:44365", "PathBase": "", "Path": "/API/Roles/GetAll", "QueryString": "", "HostingRequestFinishedLog": "Request finished HTTP/1.1 GET https://localhost:44365/API/Roles/GetAll - - - 200 - application/json;+charset=utf-8 4274.8903ms", "EventId": { "Id": 2 }, "SourceContext": "Microsoft.AspNetCore.Hosting.Diagnostics", "RequestId": "400002c8-000e-f800-b63f-84710c7967bb", "RequestPath": "/API/Roles/GetAll", "AssemblyName": "API", "AssemblyVersion": "1.0.0.0", "ProcessId": 124440, "ProcessName": "iisexpress", "ThreadId": 24, "ThreadName": ".NET ThreadPool Worker", "MemoryUsage": 6393224, "MachineName": "DESKTOP-RJ278VK", "EnvironmentName": "Development", "EnvironmentUserName": "DESKTOP-RJ278VK\\Hesam", "CorrelationId": "c6950f2d-07e7-4f2c-b9c7-80c5d7b77c11", "TraceId": "400002c8-000e-f800-b63f-84710c7967bb", "SessionId": "400002c8-000e-f800-b63f-84710c7967bb", "UserName": "admin", "UserIp": "::1", "Language": "fa-IR" }