From 5ee1a191197de1cdaf905c7aa0144a4f98d31191 Mon Sep 17 00:00:00 2001 From: "ismail.taha_janan" Date: Wed, 18 Jan 2023 14:51:59 +0100 Subject: [PATCH 1/4] :loud_sound: logs added for customer --- .DS_Store | Bin 0 -> 6148 bytes cat_cafe/Controllers/CustomersController.cs | 51 +++++++++++++++-- cat_cafe/Program.cs | 16 ++++++ cat_cafe/appsettings.json | 5 +- cat_cafe/cat_cafe.csproj | 6 ++ cat_cafe/log.txt | 58 ++++++++++++++++++++ 6 files changed, 128 insertions(+), 8 deletions(-) create mode 100644 .DS_Store create mode 100644 cat_cafe/log.txt diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..42785763a8d2212a6345cebc7d97b038b24a5943 GIT binary patch literal 6148 zcmeHK&u`N(6n^en=4e9d0i<1!EOD*2?#E#hmr%L`2QJIR4uDFsWLvZ>o|=>%s!BP- zAH$WugntLVXM1Q}w`&E+PkR2I-;X%?Y}qjpiNPe@A?gy5gfg}QG!F>JS(l{cJRP7g z&p4x)&MA9a=(DA4@Aw-T;JK5;^H$Typqsy>&=j`K1bn}R&e zkn-^~FH=1o=t-GYrZ%zx8OUJN-JH#K4-R{3Z*PCzQ?tX}eoyW19L(o|eExF#)$!=6 zxGwcq^X4S5PK`WucnjZPEb;Iq8kdDGFA(FpfR5=1Yz*lgaEq=f<&}Pisqe_T%T$L> zD5DD8R*RY9#l1{)y?6#Z1D=7EG2r$>xv{bl{Xm`p&%nRJ0Phb9${0FqESjwYjky8< z+i)9!&A*IXqa20~8;giQge?WyQsJ%`!j{9YTwds~v1rRlxXXudBMWy!5oUBeUzv0g zp+(<%20R0c46NC1m(TyB$M64(MZV`5@C^J{42bqH8V>MD?rdH9I6i9?^fQ!&^BRkP kN?@3y7`c2DZ$gd0uh;;F4jYT`K>Uw@p}{wvft51w8@?EEhX4Qo literal 0 HcmV?d00001 diff --git a/cat_cafe/Controllers/CustomersController.cs b/cat_cafe/Controllers/CustomersController.cs index bc62718..cc63bcc 100644 --- a/cat_cafe/Controllers/CustomersController.cs +++ b/cat_cafe/Controllers/CustomersController.cs @@ -9,6 +9,8 @@ using cat_cafe.Entities; using cat_cafe.Repositories; using cat_cafe.Dto; using AutoMapper; +using Serilog; +using Newtonsoft.Json; namespace cat_cafe.Controllers { @@ -18,18 +20,27 @@ namespace cat_cafe.Controllers { private readonly CustomerContext _context; private readonly IMapper _mapper; + private readonly ILogger _logger; - public CustomersController(CustomerContext context,IMapper mapper) + public CustomersController(CustomerContext context,IMapper mapper,ILogger logger) { _context = context; _mapper = mapper; + _logger = logger; } // GET: api/Customers [HttpGet] public async Task>> GetCustomers() { + Log.Information(this.Request.Method + " => get All customers"); + var customers = await _context.Customers.ToListAsync(); + + Log.Information(this.Request.Method + " => " + + this.Response.StatusCode.ToString() + " " + + customers.GetType().ToString() + " length[" + + customers.Count + "]"); return Ok(_mapper.Map>(customers)); } @@ -37,13 +48,19 @@ namespace cat_cafe.Controllers [HttpGet("{id}")] public async Task> GetCustomer(long id) { + Log.Information(this.Request.Method + " => get by ID {@id}",id); var customer = await _context.Customers.FindAsync(id); if (customer == null) { + + Log.Information(this.Request.Method + " => " + NotFound().StatusCode.ToString()); return NotFound(); } - + Log.Information(this.Request.Method + " => " + + this.Response.StatusCode.ToString() + " " + + customer.GetType().ToString() + " " + + JsonConvert.SerializeObject(customer).ToString()); return _mapper.Map(customer); } @@ -52,8 +69,10 @@ namespace cat_cafe.Controllers [HttpPut("{id}")] public async Task PutCustomer(long id, CustomerDto customerDto) { + Log.Information(this.Request.Method + " => put by ID {@id}", id); if (id != customerDto.Id) { + Log.Information(this.Request.Method + " => " + BadRequest().StatusCode.ToString()+" IDs not matching"); return BadRequest(); } @@ -65,19 +84,24 @@ namespace cat_cafe.Controllers { await _context.SaveChangesAsync(); } - catch (DbUpdateConcurrencyException) + catch (DbUpdateConcurrencyException e) { if (!CustomerExists(id)) { + Log.Information(this.Request.Method + " => " + NotFound().StatusCode.ToString()); return NotFound(); } else { + Log.Error(this.Request.Method + " => " + e.Message); throw; } } - - return NoContent(); + Log.Information(this.Request.Method + " => " + + this.Response.StatusCode.ToString() + " " + + customer.GetType().ToString() + " " + + JsonConvert.SerializeObject(customer).ToString()); + return Ok(); } // POST: api/Customers @@ -85,10 +109,17 @@ namespace cat_cafe.Controllers [HttpPost] public async Task> PostCustomer(CustomerDto customerDto) { + Log.Information(this.Request.Method + " => post customer"); + Customer customer = _mapper.Map(customerDto); _context.Customers.Add(customer); await _context.SaveChangesAsync(); + Log.Information(this.Request.Method + " => " + + 201 + " " + + customer.GetType().ToString() + " " + + JsonConvert.SerializeObject(customer).ToString()); + return CreatedAtAction("GetCustomer", new { id = customer.Id }, _mapper.Map( customer)); } @@ -96,16 +127,24 @@ namespace cat_cafe.Controllers [HttpDelete("{id}")] public async Task DeleteCustomer(long id) { + Log.Information(this.Request.Method + " => delete by ID {@id}", id); + var customer = await _context.Customers.FindAsync(id); if (customer == null) { + Log.Information(this.Request.Method + " => " + NotFound().StatusCode.ToString()); return NotFound(); } _context.Customers.Remove(customer); await _context.SaveChangesAsync(); - return NoContent(); + Log.Information(this.Request.Method + " => " + + this.Response.StatusCode.ToString() + " " + + customer.GetType().ToString() + " " + + JsonConvert.SerializeObject(customer).ToString()); + + return Ok(); } private bool CustomerExists(long id) diff --git a/cat_cafe/Program.cs b/cat_cafe/Program.cs index e5cb26c..307d218 100644 --- a/cat_cafe/Program.cs +++ b/cat_cafe/Program.cs @@ -1,8 +1,17 @@ using Microsoft.EntityFrameworkCore; using cat_cafe.Repositories; +using Serilog; +using Serilog.Sinks.File; var builder = WebApplication.CreateBuilder(args); +/* +ILoggerFactory loggerFactory=new LoggerFactory(); +loggerFactory.AddFile($@"{Directory.GetCurrentDirectory}\Logs\logs.txt"); +*/ + +Log.Logger = new LoggerConfiguration().MinimumLevel.Information().WriteTo.File("log.txt").CreateLogger(); + // Add services to the container. builder.Services.AddControllers(); @@ -21,6 +30,12 @@ builder.Services.AddControllersWithViews(); var app = builder.Build(); +/*var loggerFactory = app.Services.GetService(); +loggerFactory.AddFile(builder.Configuration["Logging:LogFilePath"].ToString()); + +app.Services.GetService().AddFile(builder.Configuration["Logging:LogFilePath"].ToString());*/ + +app.UseHttpLogging(); // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { @@ -34,4 +49,5 @@ app.UseAuthorization(); app.MapControllers(); +Log.Information("program start"); app.Run(); diff --git a/cat_cafe/appsettings.json b/cat_cafe/appsettings.json index 10f68b8..99488b4 100644 --- a/cat_cafe/appsettings.json +++ b/cat_cafe/appsettings.json @@ -1,9 +1,10 @@ { "Logging": { "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" + "Default": "Information" + //"Microsoft.AspNetCore": "Warning" } }, + "LogFilePath": "Logs\\log-{Date}.txt", "AllowedHosts": "*" } diff --git a/cat_cafe/cat_cafe.csproj b/cat_cafe/cat_cafe.csproj index 38e73c5..31cfb39 100644 --- a/cat_cafe/cat_cafe.csproj +++ b/cat_cafe/cat_cafe.csproj @@ -17,9 +17,15 @@ + + + + + + diff --git a/cat_cafe/log.txt b/cat_cafe/log.txt new file mode 100644 index 0000000..a623598 --- /dev/null +++ b/cat_cafe/log.txt @@ -0,0 +1,58 @@ +2023-01-18 08:31:45.368 +01:00 [INF] hello i m here +2023-01-18 09:01:20.438 +01:00 [INF] GET +2023-01-18 09:04:06.569 +01:00 [INF] GET => cat_cafe.Repositories.CustomerContext +2023-01-18 09:06:53.085 +01:00 [INF] GET => get All customers +2023-01-18 09:06:53.206 +01:00 [INF] GET => System.Collections.Generic.List`1[cat_cafe.Entities.Customer] +2023-01-18 09:06:54.335 +01:00 [INF] GET => get All customers +2023-01-18 09:06:54.345 +01:00 [INF] GET => System.Collections.Generic.List`1[cat_cafe.Entities.Customer] +2023-01-18 09:09:10.113 +01:00 [INF] GET => get All customers +2023-01-18 09:09:10.234 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult +2023-01-18 09:09:11.257 +01:00 [INF] GET => get All customers +2023-01-18 09:09:11.267 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult +2023-01-18 09:09:21.627 +01:00 [INF] GET => get All customers +2023-01-18 09:09:21.659 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult +2023-01-18 09:09:22.556 +01:00 [INF] GET => get All customers +2023-01-18 09:09:22.556 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult +2023-01-18 09:13:26.188 +01:00 [INF] GET => get All customers +2023-01-18 09:13:26.308 +01:00 [INF] GET => 200 +2023-01-18 09:13:27.367 +01:00 [INF] GET => get All customers +2023-01-18 09:13:27.377 +01:00 [INF] GET => 200 +2023-01-18 09:17:33.374 +01:00 [INF] GET => get by ID +2023-01-18 09:17:33.521 +01:00 [INF] GET => 200 +2023-01-18 09:27:39.325 +01:00 [INF] GET => get by ID +2023-01-18 09:27:39.471 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.NotFoundResult +2023-01-18 09:27:40.257 +01:00 [INF] GET => get by ID +2023-01-18 09:27:40.285 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.NotFoundResult +2023-01-18 09:28:36.156 +01:00 [INF] GET => get by ID +2023-01-18 09:28:36.299 +01:00 [INF] GET => 404 +2023-01-18 09:32:05.645 +01:00 [INF] GET => get by ID 98 +2023-01-18 09:32:05.788 +01:00 [INF] GET => 404 +2023-01-18 09:36:20.083 +01:00 [INF] GET => get All customers +2023-01-18 09:36:20.203 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0 +2023-01-18 09:36:21.191 +01:00 [INF] GET => get All customers +2023-01-18 09:36:21.200 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0 +2023-01-18 09:37:41.477 +01:00 [INF] GET => get All customers +2023-01-18 09:37:41.599 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0 +2023-01-18 09:48:40.093 +01:00 [INF] GET => get All customers +2023-01-18 09:48:40.216 +01:00 [INF] GET => 200List`10 +2023-01-18 09:49:47.745 +01:00 [INF] GET => get All customers +2023-01-18 09:50:13.854 +01:00 [INF] GET => get All customers +2023-01-18 10:12:48.174 +01:00 [INF] GET => get All customers +2023-01-18 10:12:48.299 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] 0 +2023-01-18 13:40:12.116 +01:00 [INF] GET => get All customers +2023-01-18 13:40:12.243 +01:00 [INF] GET => 200 length[System.Collections.Generic.List`1[cat_cafe.Entities.Customer]] 0 +2023-01-18 13:49:39.432 +01:00 [INF] GET => get All customers +2023-01-18 13:49:39.556 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0] +2023-01-18 13:49:40.662 +01:00 [INF] GET => get All customers +2023-01-18 13:49:40.671 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0] +2023-01-18 13:50:02.846 +01:00 [INF] GET => get All customers +2023-01-18 13:50:02.858 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3] +2023-01-18 13:50:16.312 +01:00 [INF] GET => get by ID 1 +2023-01-18 13:50:16.372 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer cat_cafe.Entities.Customer +2023-01-18 14:02:49.706 +01:00 [INF] GET => get by ID 1 +2023-01-18 14:02:49.853 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} +2023-01-18 14:02:50.942 +01:00 [INF] GET => get by ID 1 +2023-01-18 14:02:50.955 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} +2023-01-18 14:40:46.920 +01:00 [INF] program start +2023-01-18 14:41:47.647 +01:00 [INF] program startMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.ServerAddressesCollection+PublicServerAddressesCollection +2023-01-18 14:46:02.825 +01:00 [INF] program start From 29ece9168b5feaa54074727a754abb3955a28394 Mon Sep 17 00:00:00 2001 From: "ismail.taha_janan" Date: Wed, 18 Jan 2023 14:59:39 +0100 Subject: [PATCH 2/4] all customer API return code --- cat_cafe/Controllers/CustomersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat_cafe/Controllers/CustomersController.cs b/cat_cafe/Controllers/CustomersController.cs index cc63bcc..e2a5b21 100644 --- a/cat_cafe/Controllers/CustomersController.cs +++ b/cat_cafe/Controllers/CustomersController.cs @@ -61,7 +61,7 @@ namespace cat_cafe.Controllers + this.Response.StatusCode.ToString() + " " + customer.GetType().ToString() + " " + JsonConvert.SerializeObject(customer).ToString()); - return _mapper.Map(customer); + return Ok(_mapper.Map(customer)); } // PUT: api/Customers/5 From 8645b282f90765ba52f83c1176c835f4b978db6a Mon Sep 17 00:00:00 2001 From: "ismail.taha_janan" Date: Wed, 18 Jan 2023 16:23:01 +0100 Subject: [PATCH 3/4] age and name required for customer --- cat_cafe/Dto/CustomerDto.cs | 6 +++++- cat_cafe/Entities/Customer.cs | 5 +++++ cat_cafe/log.txt | 31 +++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/cat_cafe/Dto/CustomerDto.cs b/cat_cafe/Dto/CustomerDto.cs index 6a38d6f..181224b 100644 --- a/cat_cafe/Dto/CustomerDto.cs +++ b/cat_cafe/Dto/CustomerDto.cs @@ -1,10 +1,14 @@ using System; +using System.ComponentModel.DataAnnotations; + namespace cat_cafe.Dto { public class CustomerDto { public long Id { get; set; } - public string? FullName { get; set; } + [Required] + public string FullName { get; set; } + [Required] public int Age { get; set; } = 0; } } diff --git a/cat_cafe/Entities/Customer.cs b/cat_cafe/Entities/Customer.cs index 5ea6d82..3c264ab 100644 --- a/cat_cafe/Entities/Customer.cs +++ b/cat_cafe/Entities/Customer.cs @@ -1,10 +1,15 @@ using System; +using System.ComponentModel.DataAnnotations; + namespace cat_cafe.Entities { public class Customer { + public long Id { get; set; } + [Required] public string? FullName { get; set; } + [Required] public int Age { get; set; } = 0; } } diff --git a/cat_cafe/log.txt b/cat_cafe/log.txt index a623598..241e869 100644 --- a/cat_cafe/log.txt +++ b/cat_cafe/log.txt @@ -56,3 +56,34 @@ 2023-01-18 14:40:46.920 +01:00 [INF] program start 2023-01-18 14:41:47.647 +01:00 [INF] program startMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.ServerAddressesCollection+PublicServerAddressesCollection 2023-01-18 14:46:02.825 +01:00 [INF] program start +2023-01-18 15:11:52.392 +01:00 [INF] program start +2023-01-18 15:12:52.666 +01:00 [INF] POST => post customer +2023-01-18 15:12:52.811 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} +2023-01-18 15:12:57.721 +01:00 [INF] POST => post customer +2023-01-18 15:12:57.774 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0} +2023-01-18 15:13:05.862 +01:00 [INF] POST => post customer +2023-01-18 15:13:05.878 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":null,"Age":0} +2023-01-18 15:13:20.942 +01:00 [INF] GET => get All customers +2023-01-18 15:13:21.019 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3] +2023-01-18 15:14:29.887 +01:00 [INF] program start +2023-01-18 15:14:45.101 +01:00 [INF] POST => post customer +2023-01-18 16:06:58.681 +01:00 [INF] program start +2023-01-18 16:07:24.045 +01:00 [INF] POST => post customer +2023-01-18 16:07:24.221 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} +2023-01-18 16:09:15.539 +01:00 [INF] POST => post customer +2023-01-18 16:09:15.575 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0} +2023-01-18 16:09:16.137 +01:00 [INF] POST => post customer +2023-01-18 16:09:16.155 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":"string","Age":0} +2023-01-18 16:09:16.606 +01:00 [INF] POST => post customer +2023-01-18 16:09:16.608 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":4,"FullName":"string","Age":0} +2023-01-18 16:09:17.073 +01:00 [INF] POST => post customer +2023-01-18 16:09:17.075 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":5,"FullName":"string","Age":0} +2023-01-18 16:09:17.497 +01:00 [INF] POST => post customer +2023-01-18 16:09:17.499 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":6,"FullName":"string","Age":0} +2023-01-18 16:10:45.955 +01:00 [INF] program start +2023-01-18 16:11:14.814 +01:00 [INF] POST => post customer +2023-01-18 16:11:14.980 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} +2023-01-18 16:20:42.582 +01:00 [INF] program start +2023-01-18 16:21:45.996 +01:00 [INF] program start +2023-01-18 16:21:58.069 +01:00 [INF] POST => post customer +2023-01-18 16:21:58.244 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} From e6d29235423a193e9e8f3411f26fd6447906177b Mon Sep 17 00:00:00 2001 From: Ismail TAHA JANAN Date: Wed, 18 Jan 2023 16:34:49 +0100 Subject: [PATCH 4/4] Supprimer 'cat_cafe/log.txt' --- cat_cafe/log.txt | 89 ------------------------------------------------ 1 file changed, 89 deletions(-) delete mode 100644 cat_cafe/log.txt diff --git a/cat_cafe/log.txt b/cat_cafe/log.txt deleted file mode 100644 index 241e869..0000000 --- a/cat_cafe/log.txt +++ /dev/null @@ -1,89 +0,0 @@ -2023-01-18 08:31:45.368 +01:00 [INF] hello i m here -2023-01-18 09:01:20.438 +01:00 [INF] GET -2023-01-18 09:04:06.569 +01:00 [INF] GET => cat_cafe.Repositories.CustomerContext -2023-01-18 09:06:53.085 +01:00 [INF] GET => get All customers -2023-01-18 09:06:53.206 +01:00 [INF] GET => System.Collections.Generic.List`1[cat_cafe.Entities.Customer] -2023-01-18 09:06:54.335 +01:00 [INF] GET => get All customers -2023-01-18 09:06:54.345 +01:00 [INF] GET => System.Collections.Generic.List`1[cat_cafe.Entities.Customer] -2023-01-18 09:09:10.113 +01:00 [INF] GET => get All customers -2023-01-18 09:09:10.234 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult -2023-01-18 09:09:11.257 +01:00 [INF] GET => get All customers -2023-01-18 09:09:11.267 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult -2023-01-18 09:09:21.627 +01:00 [INF] GET => get All customers -2023-01-18 09:09:21.659 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult -2023-01-18 09:09:22.556 +01:00 [INF] GET => get All customers -2023-01-18 09:09:22.556 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult -2023-01-18 09:13:26.188 +01:00 [INF] GET => get All customers -2023-01-18 09:13:26.308 +01:00 [INF] GET => 200 -2023-01-18 09:13:27.367 +01:00 [INF] GET => get All customers -2023-01-18 09:13:27.377 +01:00 [INF] GET => 200 -2023-01-18 09:17:33.374 +01:00 [INF] GET => get by ID -2023-01-18 09:17:33.521 +01:00 [INF] GET => 200 -2023-01-18 09:27:39.325 +01:00 [INF] GET => get by ID -2023-01-18 09:27:39.471 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.NotFoundResult -2023-01-18 09:27:40.257 +01:00 [INF] GET => get by ID -2023-01-18 09:27:40.285 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.NotFoundResult -2023-01-18 09:28:36.156 +01:00 [INF] GET => get by ID -2023-01-18 09:28:36.299 +01:00 [INF] GET => 404 -2023-01-18 09:32:05.645 +01:00 [INF] GET => get by ID 98 -2023-01-18 09:32:05.788 +01:00 [INF] GET => 404 -2023-01-18 09:36:20.083 +01:00 [INF] GET => get All customers -2023-01-18 09:36:20.203 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0 -2023-01-18 09:36:21.191 +01:00 [INF] GET => get All customers -2023-01-18 09:36:21.200 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0 -2023-01-18 09:37:41.477 +01:00 [INF] GET => get All customers -2023-01-18 09:37:41.599 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0 -2023-01-18 09:48:40.093 +01:00 [INF] GET => get All customers -2023-01-18 09:48:40.216 +01:00 [INF] GET => 200List`10 -2023-01-18 09:49:47.745 +01:00 [INF] GET => get All customers -2023-01-18 09:50:13.854 +01:00 [INF] GET => get All customers -2023-01-18 10:12:48.174 +01:00 [INF] GET => get All customers -2023-01-18 10:12:48.299 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] 0 -2023-01-18 13:40:12.116 +01:00 [INF] GET => get All customers -2023-01-18 13:40:12.243 +01:00 [INF] GET => 200 length[System.Collections.Generic.List`1[cat_cafe.Entities.Customer]] 0 -2023-01-18 13:49:39.432 +01:00 [INF] GET => get All customers -2023-01-18 13:49:39.556 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0] -2023-01-18 13:49:40.662 +01:00 [INF] GET => get All customers -2023-01-18 13:49:40.671 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0] -2023-01-18 13:50:02.846 +01:00 [INF] GET => get All customers -2023-01-18 13:50:02.858 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3] -2023-01-18 13:50:16.312 +01:00 [INF] GET => get by ID 1 -2023-01-18 13:50:16.372 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer cat_cafe.Entities.Customer -2023-01-18 14:02:49.706 +01:00 [INF] GET => get by ID 1 -2023-01-18 14:02:49.853 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} -2023-01-18 14:02:50.942 +01:00 [INF] GET => get by ID 1 -2023-01-18 14:02:50.955 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} -2023-01-18 14:40:46.920 +01:00 [INF] program start -2023-01-18 14:41:47.647 +01:00 [INF] program startMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.ServerAddressesCollection+PublicServerAddressesCollection -2023-01-18 14:46:02.825 +01:00 [INF] program start -2023-01-18 15:11:52.392 +01:00 [INF] program start -2023-01-18 15:12:52.666 +01:00 [INF] POST => post customer -2023-01-18 15:12:52.811 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} -2023-01-18 15:12:57.721 +01:00 [INF] POST => post customer -2023-01-18 15:12:57.774 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0} -2023-01-18 15:13:05.862 +01:00 [INF] POST => post customer -2023-01-18 15:13:05.878 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":null,"Age":0} -2023-01-18 15:13:20.942 +01:00 [INF] GET => get All customers -2023-01-18 15:13:21.019 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3] -2023-01-18 15:14:29.887 +01:00 [INF] program start -2023-01-18 15:14:45.101 +01:00 [INF] POST => post customer -2023-01-18 16:06:58.681 +01:00 [INF] program start -2023-01-18 16:07:24.045 +01:00 [INF] POST => post customer -2023-01-18 16:07:24.221 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} -2023-01-18 16:09:15.539 +01:00 [INF] POST => post customer -2023-01-18 16:09:15.575 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0} -2023-01-18 16:09:16.137 +01:00 [INF] POST => post customer -2023-01-18 16:09:16.155 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":"string","Age":0} -2023-01-18 16:09:16.606 +01:00 [INF] POST => post customer -2023-01-18 16:09:16.608 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":4,"FullName":"string","Age":0} -2023-01-18 16:09:17.073 +01:00 [INF] POST => post customer -2023-01-18 16:09:17.075 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":5,"FullName":"string","Age":0} -2023-01-18 16:09:17.497 +01:00 [INF] POST => post customer -2023-01-18 16:09:17.499 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":6,"FullName":"string","Age":0} -2023-01-18 16:10:45.955 +01:00 [INF] program start -2023-01-18 16:11:14.814 +01:00 [INF] POST => post customer -2023-01-18 16:11:14.980 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0} -2023-01-18 16:20:42.582 +01:00 [INF] program start -2023-01-18 16:21:45.996 +01:00 [INF] program start -2023-01-18 16:21:58.069 +01:00 [INF] POST => post customer -2023-01-18 16:21:58.244 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}