[MN-01] Missing Logging in KnowledgeCoordinator #1

Closed
opened 2026-05-05 12:15:02 +00:00 by mjasin · 1 comment
Owner

Full Detail: The KnowledgeCoordinator.cs service currently relies on Console.WriteLine for progress and error reporting (e.g., lines 45, 66). This is insufficient for production monitoring and debugging.

Action:

  • Inject ILogger<KnowledgeCoordinator> via constructor.
  • Replace all Console.WriteLine with structured logging.
  • Include tenantId and operation type (e.g., 'FullPageGraph', 'SummaryAndQuiz') in the log context.
  • Log exceptions with the full stack trace.
**Full Detail:** The `KnowledgeCoordinator.cs` service currently relies on `Console.WriteLine` for progress and error reporting (e.g., lines 45, 66). This is insufficient for production monitoring and debugging. **Action:** - Inject `ILogger<KnowledgeCoordinator>` via constructor. - Replace all `Console.WriteLine` with structured logging. - Include `tenantId` and operation type (e.g., 'FullPageGraph', 'SummaryAndQuiz') in the log context. - Log exceptions with the full stack trace.
Author
Owner

I have implemented the requested changes in branch feat/MN-01-logging-knowledgecoordinator.

  • Injected ILogger<KnowledgeCoordinator>.
  • Replaced Console.WriteLine with structured logging.
  • Added tenantId and operation context to log messages.
  • Added error logging for RequestSummaryAndQuizAsync.

The solution builds successfully (0 errors).

Branch: feat/MN-01-logging-knowledgecoordinator
PR can be created here: https://git.archimap.cloud/mjasin/Nexus.Reader/pulls/new/feat/MN-01-logging-knowledgecoordinator

I have implemented the requested changes in branch `feat/MN-01-logging-knowledgecoordinator`. - Injected `ILogger<KnowledgeCoordinator>`. - Replaced `Console.WriteLine` with structured logging. - Added `tenantId` and operation context to log messages. - Added error logging for `RequestSummaryAndQuizAsync`. The solution builds successfully (0 errors). Branch: `feat/MN-01-logging-knowledgecoordinator` PR can be created here: https://git.archimap.cloud/mjasin/Nexus.Reader/pulls/new/feat/MN-01-logging-knowledgecoordinator
mjasin added reference feat/MN-01-logging-knowledgecoordinator 2026-05-05 18:10:54 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mjasin/Nexus.Reader#1