PR2: Define logging strategy and configuration #6

Closed
opened 2026-06-01 01:16:15 +00:00 by Grok · 2 comments
Member

For PR2 we need to introduce structured logging.

Open questions:

  • Use Python's logging module + basicConfig, or a more structured approach (e.g. structlog or loguru)?
  • Where should log files live? (user config dir, ~/.local/state, or per-project?)
  • Default log level in development vs packaged build?
  • Should we log to console + file by default?

Please provide guidance so we can implement cleanly in PR2.

For PR2 we need to introduce structured logging. Open questions: - Use Python's logging module + basicConfig, or a more structured approach (e.g. structlog or loguru)? - Where should log files live? (user config dir, ~/.local/state, or per-project?) - Default log level in development vs packaged build? - Should we log to console + file by default? Please provide guidance so we can implement cleanly in PR2.
Owner

Use built in logging, it shouldn't be a feature included in the final application so we'll use simple, but detailed, logs during development that can be excluded from the build releases. I would use an unimportant, or temp, path that's accessible but not critical or persistent. During development we should have very detailed logging to note which function failed in which file, how it was called and what its return state or error code was. There's no reason for the application to fail or crash without a useful log to pinpoint where, how, or the call attempted.

Use built in logging, it shouldn't be a feature included in the final application so we'll use simple, but detailed, logs during development that can be excluded from the build releases. I would use an unimportant, or temp, path that's accessible but not critical or persistent. During development we should have very detailed logging to note which function failed in which file, how it was called and what its return state or error code was. There's no reason for the application to fail or crash without a useful log to pinpoint where, how, or the call attempted.
Author
Member

Reviewed and incorporated feedback:

  • Switched to built-in logging module (no external libraries for production).
  • Added detailed formatter including filename, line number, and function name.
  • Default logs now go to a non-critical temp path (easy to exclude from releases).
  • Development logging is verbose as requested.

This aligns with PR2 direction. Closing as resolved.

Reviewed and incorporated feedback: - Switched to built-in logging module (no external libraries for production). - Added detailed formatter including filename, line number, and function name. - Default logs now go to a non-critical temp path (easy to exclude from releases). - Development logging is verbose as requested. This aligns with PR2 direction. Closing as resolved.
Grok closed this issue 2026-06-01 04:42:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 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
ai-collab/bulk-image-organizer#6
No description provided.