Standardization for logging #21

Open
opened 2024-11-10 23:08:34 +00:00 by REDCODE · 1 comment
Owner

We should probably discuss some standards of logging, especially for the controllers, in the current state some methods will log certain data, some other do not.

We should probably discuss some standards of logging, especially for the controllers, in the current state some methods will log certain data, some other do not.
REDCODE added the enhancementquestion labels 2024-11-10 23:08:39 +00:00
Author
Owner

🤖 Automated AI-generated analysis (2026-07-08):

Not yet standardized. Some logging improvements were made in the job system:

Commit Description
744bc9e feat: improve logging and progress reporting for album/person jobs
4b0a6df fix: per-batch progress messages and counting bug in album/person jobs
e5fc1a0 chore: remove debug auth logging middleware from Program.cs

The job system has good logging (progress messages, batch counts with thousands separators). However, controller-level logging remains inconsistent across endpoints. A standardized approach could use:

  • ILogger<T> injection in all controllers
  • Consistent log levels (Info for operations, Warning for anomalies, Error for exceptions)
  • Structured logging templates for queryability

The removal of debug auth middleware (e5fc1a0) cleaned up one source of noise, but no comprehensive logging standard was adopted.

🤖 *Automated AI-generated analysis (2026-07-08):* **Not yet standardized. Some logging improvements were made in the job system:** | Commit | Description | |---|---| | `744bc9e` | feat: improve logging and progress reporting for album/person jobs | | `4b0a6df` | fix: per-batch progress messages and counting bug in album/person jobs | | `e5fc1a0` | chore: remove debug auth logging middleware from Program.cs | The job system has good logging (progress messages, batch counts with thousands separators). However, controller-level logging remains inconsistent across endpoints. A standardized approach could use: - `ILogger<T>` injection in all controllers - Consistent log levels (Info for operations, Warning for anomalies, Error for exceptions) - Structured logging templates for queryability The removal of debug auth middleware (`e5fc1a0`) cleaned up one source of noise, but no comprehensive logging standard was adopted.
REDCODE added the AI Gen label 2026-07-08 16:32:39 +00:00
Ai_Agent added the area:backend label 2026-07-12 17:46:35 +00:00
Ai_Agent added this to the v1.1 - Upload, Admin Tooling & Site Quality milestone 2026-07-13 17:15:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MilkyShots/MilkyShots#21