#873-implement-logger-for-tempservice #931

Merged
a22erigr merged 3 commits from 873-implement-logger-for-tempservice into team_2_week_5 2026-05-13 07:52:30 +00:00
Collaborator

Replaced Console.WriteLine with ILogger in tempService.

Added structured logging for:
-endpoints
-service layer
-database queries

Replaced Console.WriteLine with ILogger in tempService. Added structured logging for: -endpoints -service layer -database queries
implemented logger instead of console.writeline
Replaced Console.WriteLine with ILogger in tempService.
a24nedka changed title from #873implement-logger-for-tempservice to #873-implement-logger-for-tempservice 2026-05-13 06:07:45 +00:00
a22erigr 2026-05-13 06:37:09 +00:00
a24sakma left a comment
Collaborator

It looks good good.

What needs to be done

Just remove the redundant imports.

It looks good good. # What needs to be done Just remove the redundant imports.
@ -1,11 +1,16 @@
using Dapper;
using Npgsql;
using tempService.Models;
using Microsoft.Extensions.Logging;
Collaborator

You don't need to import logging. It is inbuilt it dotnet

You don't need to import logging. It is inbuilt it dotnet
a24sakma marked this conversation as resolved
@ -1,6 +1,7 @@
using Microsoft.Extensions.Caching.Memory;
using tempService.Services;
using tempService.Models;
using Microsoft.Extensions.Logging;
Collaborator

same here

same here
a24sakma marked this conversation as resolved
@ -1,10 +1,14 @@
using tempService.Models;
using tempService.DatabaseLogic;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Logging;
Collaborator

here too

here too
a24sakma marked this conversation as resolved
a24sakma requested changes 2026-05-13 07:31:25 +00:00
Dismissed
a24sakma left a comment
Collaborator

check the above comments

check the above comments
Removed imports
Author
Collaborator

@a22erigr @a24sakma Removed the imports as suggested in the review

@a22erigr @a24sakma Removed the imports as suggested in the review
Collaborator

Have you run the code and verified it works?

Have you run the code and verified it works?
a24sakma approved these changes 2026-05-13 07:52:19 +00:00
a22erigr merged commit 1ac1bc3ce4 into team_2_week_5 2026-05-13 07:52:30 +00:00
Author
Collaborator

@a22erigr Yes, tested and it still works after removing the import

@a22erigr Yes, tested and it still works after removing the import
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!931
No description provided.