diff --git a/.logs/log-20241126.txt b/.logs/log-20241126.txt new file mode 100644 index 0000000..587c567 --- /dev/null +++ b/.logs/log-20241126.txt @@ -0,0 +1,61 @@ +{"@t":"2024-11-26T10:05:51.8518637Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"ac12e8488769f55eaa70ce6a888bfcb3","@sp":"4fb8933130f1f3db","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E07KA0AD3:00000001","RequestPath":"/","ConnectionId":"0HN8E07KA0AD3"} +{"@t":"2024-11-26T10:05:52.0234491Z","@m":"HTTP \"GET\" \"/\" responded 200 in 104.4609 ms","@i":"62d0885c","@tr":"ac12e8488769f55eaa70ce6a888bfcb3","@sp":"4fb8933130f1f3db","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":104.4609,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:21.0179856Z","@m":"HTTP \"GET\" \"/\" responded 200 in 3.9216 ms","@i":"62d0885c","@tr":"9feb12d52093546ba486f0220f2b8f27","@sp":"c1e731b9f5794e17","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":3.9216,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:22.3394279Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 10.5563 ms","@i":"62d0885c","@tr":"b68489b03dd3809ebf0b90338f567a14","@sp":"3da96da23f11583b","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":10.5563,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:24.9270254Z","@m":"HTTP \"GET\" \"/\" responded 200 in 1.3345 ms","@i":"62d0885c","@tr":"ea4233ee8f1db4a877bb3aa51ccf6af2","@sp":"f559f8ed906ca41a","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":1.3345,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:25.6475880Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 2.0877 ms","@i":"62d0885c","@tr":"4d878ce74264bc9fc056c47a847ee802","@sp":"a5a624bb77cc56ac","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":2.0877,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:51.6664359Z","@m":"HTTP \"GET\" \"/\" responded 200 in 1.4694 ms","@i":"62d0885c","@tr":"28b54c30ffb08b0a9c063ff138511293","@sp":"9f032571e2bd2e90","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":1.4694,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:53.4040859Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 1.6269 ms","@i":"62d0885c","@tr":"9dc74fb9ba6098cfc24d3add3c9a4b2c","@sp":"b509c19d333c27f2","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":1.6269,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:06:54.0744965Z","@m":"HTTP \"GET\" \"/\" responded 200 in 1.1585 ms","@i":"62d0885c","@tr":"951d7f2822ab5076d5292dec348d9979","@sp":"c5ad7f73aadfe00f","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":1.1585,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:07:59.7948287Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"a9ecb9175149b36937d2cfadfee8de97","@sp":"35b76309fa30d991","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E08QEMM6I:00000001","RequestPath":"/","ConnectionId":"0HN8E08QEMM6I"} +{"@t":"2024-11-26T10:07:59.9744046Z","@m":"HTTP \"GET\" \"/\" responded 200 in 130.6918 ms","@i":"62d0885c","@tr":"a9ecb9175149b36937d2cfadfee8de97","@sp":"35b76309fa30d991","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":130.6918,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:09:48.5804701Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"4237e9667ad672863f0e68faa672c22b","@sp":"53f269b8b1303bba","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E09QSEH07:00000001","RequestPath":"/","ConnectionId":"0HN8E09QSEH07"} +{"@t":"2024-11-26T10:09:48.7440899Z","@m":"HTTP \"GET\" \"/\" responded 200 in 115.4993 ms","@i":"62d0885c","@tr":"4237e9667ad672863f0e68faa672c22b","@sp":"53f269b8b1303bba","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":115.4993,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:10:00.2628018Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"d026fae1af76f1cefd57c35caa84c175","@sp":"835ea319410b8bc7","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E09UBOCNH:00000001","RequestPath":"/","ConnectionId":"0HN8E09UBOCNH"} +{"@t":"2024-11-26T10:10:00.4177101Z","@m":"HTTP \"GET\" \"/\" responded 200 in 104.3000 ms","@i":"62d0885c","@tr":"d026fae1af76f1cefd57c35caa84c175","@sp":"835ea319410b8bc7","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":104.3,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:11:49.7058789Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"b9c199885421b403253e2e9f5ca3ca16","@sp":"1b2654d037249367","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E0AUUBDOJ:00000001","RequestPath":"/","ConnectionId":"0HN8E0AUUBDOJ"} +{"@t":"2024-11-26T10:11:49.9121442Z","@m":"HTTP \"GET\" \"/\" responded 200 in 111.9791 ms","@i":"62d0885c","@tr":"b9c199885421b403253e2e9f5ca3ca16","@sp":"1b2654d037249367","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":111.9791,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:56:04.5034620Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"fa014cbff24976bdbdd295c3bd41ae06","@sp":"383f378760fbff18","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E13M4QNAR:00000001","RequestPath":"/","ConnectionId":"0HN8E13M4QNAR"} +{"@t":"2024-11-26T10:56:05.0254284Z","@m":"HTTP \"GET\" \"/\" responded 200 in 337.3838 ms","@i":"62d0885c","@tr":"fa014cbff24976bdbdd295c3bd41ae06","@sp":"383f378760fbff18","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":337.3838,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:56:08.6705780Z","@m":"HTTP \"GET\" \"/\" responded 200 in 12.2727 ms","@i":"62d0885c","@tr":"4f8b96b16df157478d9fa6e6a6a8cce6","@sp":"09eefb8f3523c412","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":12.2727,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:56:09.6422534Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 20.4518 ms","@i":"62d0885c","@tr":"f89a3f84c7e8fec844fa5028ad05fb7f","@sp":"1e3ee4b71d0cf081","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":20.4518,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:56:10.3914486Z","@m":"HTTP \"GET\" \"/\" responded 200 in 4.0703 ms","@i":"62d0885c","@tr":"f85c9a54f52daaa2b800a73991f3d328","@sp":"fd6e2ab8222dbf81","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":4.0703,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:58:38.3710340Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"046aef456ea4db7aa213eca22c6657f7","@sp":"ff08f0e71edace19","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E1540E4R1:00000001","RequestPath":"/","ConnectionId":"0HN8E1540E4R1"} +{"@t":"2024-11-26T10:58:38.5558943Z","@m":"HTTP \"GET\" \"/\" responded 200 in 89.0194 ms","@i":"62d0885c","@tr":"046aef456ea4db7aa213eca22c6657f7","@sp":"ff08f0e71edace19","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":89.0194,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:58:49.0161628Z","@m":"HTTP \"GET\" \"/\" responded 200 in 3.6232 ms","@i":"62d0885c","@tr":"e75dc62da82fc189ce686247a2aeb602","@sp":"23ad037929062c5d","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":3.6232,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:58:50.6846142Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 9.2867 ms","@i":"62d0885c","@tr":"aa041312fb4fd1de7780a5848515e2a2","@sp":"62324d83472b3a8b","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":9.2867,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:58:51.1963082Z","@m":"HTTP \"GET\" \"/\" responded 200 in 1.9079 ms","@i":"62d0885c","@tr":"fb723e9d28bbeb1ba1417324e06208a8","@sp":"e1658657dbd8d7b8","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":1.9079,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T10:58:51.8186730Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 2.2633 ms","@i":"62d0885c","@tr":"0fb63a55464b0e5d69dcbae5dbfc7f74","@sp":"68f7efe55baf1476","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":2.2633,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:00:04.9320880Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 4.2272 ms","@i":"62d0885c","@tr":"013e02ac1010d3e5cb5c761eef742d66","@sp":"d31ae5ba684e509f","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":4.2272,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:00:06.7925833Z","@m":"HTTP \"GET\" \"/\" responded 200 in 2.0236 ms","@i":"62d0885c","@tr":"5b95aefe69b02b5543b81df7fd174596","@sp":"fe0fcf5c7522370d","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":2.0236,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:01:05.5816039Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 0.9692 ms","@i":"62d0885c","@tr":"350590930f4a5fa16105bc0c982cb530","@sp":"fd3da02e63d82953","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":0.9692,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:01:55.4633654Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"e1197fedfbbcc593879e11fe38a77ef1","@sp":"4019c1200866d3ba","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E16UO1TM4:00000001","RequestPath":"/","ConnectionId":"0HN8E16UO1TM4"} +{"@t":"2024-11-26T11:01:55.6221289Z","@m":"HTTP \"GET\" \"/\" responded 200 in 100.0014 ms","@i":"62d0885c","@tr":"e1197fedfbbcc593879e11fe38a77ef1","@sp":"4019c1200866d3ba","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":100.0014,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:01:59.9082191Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 12.7600 ms","@i":"62d0885c","@tr":"5769c0db4aa470f536daa832cee5f935","@sp":"53746e68d703dc03","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":12.76,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:02:00.7199673Z","@m":"HTTP \"GET\" \"/\" responded 200 in 1.8817 ms","@i":"62d0885c","@tr":"9a7605bd53df9ee815d9d7607c088634","@sp":"c66f8593ebccd850","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":1.8817,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:02:01.5054216Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 2.2818 ms","@i":"62d0885c","@tr":"7a3bc2735a2a648353e20d3298c14764","@sp":"aebab20d735d6379","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":2.2818,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:02:02.2829973Z","@m":"HTTP \"GET\" \"/\" responded 200 in 2.4512 ms","@i":"62d0885c","@tr":"23b55843cbf4e2525a6d33e7501276e4","@sp":"757a13d3cc17261c","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":2.4512,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:03:22.0023418Z","@m":"HTTP \"GET\" \"/\" responded 200 in 2.6438 ms","@i":"62d0885c","@tr":"c9e147552018d6fd00bad4312e2889e0","@sp":"d15bcb9f44078679","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":2.6438,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:03:23.5627813Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 3.8611 ms","@i":"62d0885c","@tr":"611f740506f2a82373f42b776338bda0","@sp":"37765c77d65c49c2","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":3.8611,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:09:03.2639993Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"b939fb4d0dfbf322b9df85adfeb7daf9","@sp":"ee896cd29a6599f4","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E1AU7IDO2:00000001","RequestPath":"/","ConnectionId":"0HN8E1AU7IDO2"} +{"@t":"2024-11-26T11:09:03.4234461Z","@m":"HTTP \"GET\" \"/\" responded 200 in 103.6764 ms","@i":"62d0885c","@tr":"b939fb4d0dfbf322b9df85adfeb7daf9","@sp":"ee896cd29a6599f4","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":103.6764,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:09:17.8634693Z","@m":"HTTP \"GET\" \"/\" responded 200 in 5.1856 ms","@i":"62d0885c","@tr":"93db9a007f65f89654d61b21b24d10c4","@sp":"c422f26427ab51d7","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":5.1856,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:09:18.1963400Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 7.5955 ms","@i":"62d0885c","@tr":"cfc756894791790f3493d6870a803bff","@sp":"26c22179b0113f33","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":7.5955,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:09:18.5329614Z","@m":"HTTP \"GET\" \"/\" responded 200 in 1.1944 ms","@i":"62d0885c","@tr":"44546412eee68d6def7db74115256e4c","@sp":"341d5d76e792a652","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":1.1944,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:09:18.9449573Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 1.7001 ms","@i":"62d0885c","@tr":"6309ecffa6f249407ebcd6eaf96aaed8","@sp":"eaab9bbd95a60d2f","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":1.7001,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:10:12.3511455Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"2fcef1272dfc1ee72dc362cc1aa1a577","@sp":"48761da937bdc663","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E1BIQKS1S:00000001","RequestPath":"/","ConnectionId":"0HN8E1BIQKS1S"} +{"@t":"2024-11-26T11:10:12.4869168Z","@m":"HTTP \"GET\" \"/\" responded 200 in 90.6674 ms","@i":"62d0885c","@tr":"2fcef1272dfc1ee72dc362cc1aa1a577","@sp":"48761da937bdc663","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":90.6674,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:10:20.0618754Z","@m":"HTTP \"GET\" \"/\" responded 200 in 13.6450 ms","@i":"62d0885c","@tr":"3026652dffe9f0ae0549872f4e5b4e56","@sp":"d14d64af35e3cd9f","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":13.645,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:10:20.2939941Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 30.3510 ms","@i":"62d0885c","@tr":"ded5937e07d702843d070636a0b271e1","@sp":"1f3a3045602c90e4","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":30.351,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware"} +{"@t":"2024-11-26T11:18:42.8625069Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"a1f0172bda1adaf98c754697d78a422c","@sp":"46f0ddbb535f435a","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E1GAVPAM5:00000001","RequestPath":"/","ConnectionId":"0HN8E1GAVPAM5","Environment":"Development"} +{"@t":"2024-11-26T11:18:43.2640823Z","@m":"HTTP \"GET\" \"/\" responded 200 in 90.5193 ms","@i":"62d0885c","@tr":"a1f0172bda1adaf98c754697d78a422c","@sp":"46f0ddbb535f435a","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":90.5193,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1GAVPAM5:00000001","ConnectionId":"0HN8E1GAVPAM5","Environment":"Development"} +{"@t":"2024-11-26T11:18:45.9893956Z","@m":"HTTP \"GET\" \"/\" responded 200 in 8.1369 ms","@i":"62d0885c","@tr":"de31e4af3cdd4b395e1361656f8be6a0","@sp":"8ca8291cad303b4b","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":8.1369,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1GAVPAM5:00000003","ConnectionId":"0HN8E1GAVPAM5","Environment":"Development"} +{"@t":"2024-11-26T11:18:46.6636781Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 15.9926 ms","@i":"62d0885c","@tr":"a412a64fb4ffcd12981b0e3a47ee0754","@sp":"3e7059a01dcff1e8","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":15.9926,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1GAVPAM5:00000004","ConnectionId":"0HN8E1GAVPAM5","Environment":"Development"} +{"@t":"2024-11-26T11:20:09.6881790Z","@m":"Failed to determine the https port for redirect.","@i":"ca76cc21","@l":"Warning","@tr":"198118744925558f5aa70390a1dcfa69","@sp":"2543fdff3ac5e956","EventId":{"Id":3,"Name":"FailedToDeterminePort"},"SourceContext":"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware","RequestId":"0HN8E1H4RT02L:00000001","RequestPath":"/","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:09.8027903Z","@m":"Sample log. My name is \"Oleg\"","@i":"04820aad","@tr":"198118744925558f5aa70390a1dcfa69","@sp":"2543fdff3ac5e956","MyName":"Oleg","SourceContext":"telemetry.Pages.IndexModel","ActionId":"bcc6a09b-06d7-4d65-8e20-fd75b6fdadf3","ActionName":"/Index","RequestId":"0HN8E1H4RT02L:00000001","RequestPath":"/","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:09.8761149Z","@m":"HTTP \"GET\" \"/\" responded 200 in 106.3028 ms","@i":"62d0885c","@tr":"198118744925558f5aa70390a1dcfa69","@sp":"2543fdff3ac5e956","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":106.3028,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1H4RT02L:00000001","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:14.8066811Z","@m":"HTTP \"GET\" \"/Privacy\" responded 200 in 21.4058 ms","@i":"62d0885c","@tr":"54fc230b24af1602499abfdda85d0d97","@sp":"9895800144bb3456","RequestMethod":"GET","RequestPath":"/Privacy","StatusCode":200,"Elapsed":21.4058,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1H4RT02L:00000002","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:15.4894636Z","@m":"Sample log. My name is \"Oleg\"","@i":"04820aad","@tr":"ee69daac559d62e85ad5fdc2056e2fc0","@sp":"f2ed4a83ab9aa1db","MyName":"Oleg","SourceContext":"telemetry.Pages.IndexModel","ActionId":"bcc6a09b-06d7-4d65-8e20-fd75b6fdadf3","ActionName":"/Index","RequestId":"0HN8E1H4RT02L:00000003","RequestPath":"/","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:15.5003629Z","@m":"HTTP \"GET\" \"/\" responded 200 in 11.3144 ms","@i":"62d0885c","@tr":"ee69daac559d62e85ad5fdc2056e2fc0","@sp":"f2ed4a83ab9aa1db","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":11.3144,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1H4RT02L:00000003","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:16.8749613Z","@m":"Sample log. My name is \"Oleg\"","@i":"04820aad","@tr":"bb22bfe29fe21972d2a64f67dfd79505","@sp":"ad3208e4d900278b","MyName":"Oleg","SourceContext":"telemetry.Pages.IndexModel","ActionId":"bcc6a09b-06d7-4d65-8e20-fd75b6fdadf3","ActionName":"/Index","RequestId":"0HN8E1H4RT02L:00000004","RequestPath":"/","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} +{"@t":"2024-11-26T11:20:16.9107361Z","@m":"HTTP \"GET\" \"/\" responded 200 in 36.0768 ms","@i":"62d0885c","@tr":"bb22bfe29fe21972d2a64f67dfd79505","@sp":"ad3208e4d900278b","RequestMethod":"GET","RequestPath":"/","StatusCode":200,"Elapsed":36.0768,"SourceContext":"Serilog.AspNetCore.RequestLoggingMiddleware","RequestId":"0HN8E1H4RT02L:00000004","ConnectionId":"0HN8E1H4RT02L","Environment":"Development"} diff --git a/.logs/start-host-log-2024-11-26.txt b/.logs/start-host-log-2024-11-26.txt new file mode 100644 index 0000000..1c873a8 --- /dev/null +++ b/.logs/start-host-log-2024-11-26.txt @@ -0,0 +1,52 @@ +2024-11-26 15:31:57.466 +05:00 [ERR] Failed to load configuration from file 'C:\ФИИТ\бекент Стаса\telemetry-logging\appsettings.Development.json'. +System.IO.InvalidDataException: Failed to load configuration from file 'C:\ФИИТ\бекент Стаса\telemetry-logging\appsettings.Development.json'. + ---> System.FormatException: Could not parse the JSON file. + ---> System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 2 | BytePositionInLine: 0. + at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes) + at System.Text.Json.Utf8JsonReader.ReadSingleSegment() + at System.Text.Json.Utf8JsonReader.Read() + at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) + at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) + at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options) + at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) + at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.ParseStream(Stream input) + at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) + --- End of inner exception stack trace --- + at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) + at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) + --- End of inner exception stack trace --- + at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) + at Microsoft.Extensions.Configuration.ConfigurationManager.AddSource(IConfigurationSource source) + at Microsoft.Extensions.Configuration.ConfigurationManager.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(IConfigurationSource source) + at Microsoft.Extensions.Configuration.JsonConfigurationExtensions.AddJsonFile(IConfigurationBuilder builder, String path, Boolean optional, Boolean reloadOnChange) + at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.ApplyDefaultAppConfiguration(HostBuilderContext hostingContext, IConfigurationBuilder appConfigBuilder, String[] args) + at Microsoft.Extensions.Hosting.HostApplicationBuilder..ctor(HostApplicationBuilderSettings settings) + at Microsoft.AspNetCore.Builder.WebApplicationBuilder..ctor(WebApplicationOptions options, Action`1 configureDefaults) + at Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder(String[] args) + at Program.
$(String[] args) in C:\ФИИТ\бекент Стаса\telemetry-logging\Program.cs:line 14 +2024-11-26 15:33:19.020 +05:00 [ERR] Failed to load configuration from file 'C:\ФИИТ\бекент Стаса\telemetry-logging\appsettings.Development.json'. +System.IO.InvalidDataException: Failed to load configuration from file 'C:\ФИИТ\бекент Стаса\telemetry-logging\appsettings.Development.json'. + ---> System.FormatException: Could not parse the JSON file. + ---> System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 2 | BytePositionInLine: 0. + at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes) + at System.Text.Json.Utf8JsonReader.ReadSingleSegment() + at System.Text.Json.Utf8JsonReader.Read() + at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) + at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) + at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options) + at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) + at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.ParseStream(Stream input) + at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) + --- End of inner exception stack trace --- + at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) + at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) + --- End of inner exception stack trace --- + at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) + at Microsoft.Extensions.Configuration.ConfigurationManager.AddSource(IConfigurationSource source) + at Microsoft.Extensions.Configuration.ConfigurationManager.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(IConfigurationSource source) + at Microsoft.Extensions.Configuration.JsonConfigurationExtensions.AddJsonFile(IConfigurationBuilder builder, String path, Boolean optional, Boolean reloadOnChange) + at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.ApplyDefaultAppConfiguration(HostBuilderContext hostingContext, IConfigurationBuilder appConfigBuilder, String[] args) + at Microsoft.Extensions.Hosting.HostApplicationBuilder..ctor(HostApplicationBuilderSettings settings) + at Microsoft.AspNetCore.Builder.WebApplicationBuilder..ctor(WebApplicationOptions options, Action`1 configureDefaults) + at Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder(String[] args) + at Program.
$(String[] args) in C:\ФИИТ\бекент Стаса\telemetry-logging\Program.cs:line 15 diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index 34a599f..663ea8e 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -14,6 +14,7 @@ public IndexModel(ILogger logger) public void OnGet() { - + var myName = "Oleg"; // ваше имя + _logger.LogInformation("Sample log. My name is {MyName}", myName); } } diff --git a/Program.cs b/Program.cs index bc275e4..8516b85 100644 --- a/Program.cs +++ b/Program.cs @@ -1,25 +1,64 @@ -var builder = WebApplication.CreateBuilder(args); +using Elastic.Channels; +using Elastic.Ingest.Elasticsearch; +using Elastic.Ingest.Elasticsearch.DataStreams; +using Elastic.Serilog.Sinks; +using Elastic.Transport; +using Serilog; -// Add services to the container. -builder.Services.AddRazorPages(); +try +{ + var builder = WebApplication.CreateBuilder(args); + Log.Logger = new LoggerConfiguration() + .Enrich.FromLogContext() + .WriteTo.Elasticsearch([new Uri("http://localhost:9200")], opts => + { + opts.DataStream = new DataStreamName("logs", "telemetry-logging", "demo"); + opts.BootstrapMethod = BootstrapMethod.Failure; + opts.ConfigureChannel = channelOpts => + { + channelOpts.BufferOptions = new BufferOptions + { + ExportMaxConcurrency = 10 + }; + }; + }, transport => + { + transport.Authentication(new BasicAuthentication("elastic", "changeme")); // Basic Auth + }) + .Enrich.WithProperty("Environment", builder.Environment.EnvironmentName) + .ReadFrom.Configuration(builder.Configuration) + .CreateLogger(); + builder.Services.AddRazorPages(); + builder.Host.UseSerilog(); -var app = builder.Build(); + builder.Services.AddSerilog(Log.Logger); + var app = builder.Build(); + if (!app.Environment.IsDevelopment()) + { + app.UseExceptionHandler("/Error"); + // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. + app.UseHsts(); + } -// Configure the HTTP request pipeline. -if (!app.Environment.IsDevelopment()) + app.UseHttpsRedirection(); + app.UseStaticFiles(); + app.UseSerilogRequestLogging(); + + app.UseRouting(); + + app.UseAuthorization(); + + app.MapRazorPages(); + + app.Run(); +} +catch (Exception e) { - app.UseExceptionHandler("/Error"); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); + Log.Logger.Error(e, e.Message); + throw; } -app.UseHttpsRedirection(); -app.UseStaticFiles(); -app.UseRouting(); -app.UseAuthorization(); - -app.MapRazorPages(); +// Configure the HTTP request pipeline. -app.Run(); diff --git a/appsettings.Development.json b/appsettings.Development.json index 770d3e9..4adc333 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -1,9 +1,2 @@ -{ - "DetailedErrors": true, - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} +{} + diff --git a/appsettings.json b/appsettings.json index 10f68b8..ba3e2cd 100644 --- a/appsettings.json +++ b/appsettings.json @@ -1,8 +1,28 @@ { - "Logging": { - "LogLevel": { + "Serilog": { + "WriteTo": [ + { + "Name": "File", + "Args": { + "path": ".logs/log-.txt", + "formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter, Serilog.Formatting.Compact", + "rollingInterval": "Day", + "rollOnFileSizeLimit": true + } + }, + { + "Name": "Console", + "Args": { + "outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} {Properties:j}{NewLine}{Exception}" + } + } + ], + "MinimumLevel": { "Default": "Information", - "Microsoft.AspNetCore": "Warning" + "Override": { + "Microsoft": "Warning", + "System": "Warning" + } } }, "AllowedHosts": "*" diff --git a/telemetry.csproj b/telemetry.csproj index 1b28a01..2f4c0fd 100644 --- a/telemetry.csproj +++ b/telemetry.csproj @@ -6,4 +6,11 @@ enable + + + + + + +