spacedrive/.tasks/JOB-002-job-logging.md
2025-09-06 21:00:37 -04:00

1006 B

id, title, status, assignee, parent, priority, tags, whitepaper
id title status assignee parent priority tags whitepaper
JOB-002 Job-Specific File Logging Done james JOB-000 Medium
core
jobs
logging
Section 6

Description

A dedicated logging system for jobs will be implemented. When enabled, each job writes its detailed operational logs, including progress and debug messages, to a unique log file.

Implementation Notes

  • The logging logic will be implemented in src/infrastructure/jobs/logger.rs.
  • Configuration is managed via JobLoggingConfig in src/config/app_config.rs.
  • The JobExecutor creates a FileJobLogger instance for each job it runs, passing it down through the JobContext.
  • Log files are stored in the job_logs directory within the library path.

Acceptance Criteria

  • When enabled in the config, running a job creates a corresponding .log file.
  • Progress, info, and error messages from the job context are written to the file.
  • The logger respects the include_debug configuration flag.