mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
1006 B
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 |
|
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
JobLoggingConfiginsrc/config/app_config.rs. - The
JobExecutorcreates aFileJobLoggerinstance for each job it runs, passing it down through theJobContext. - Log files are stored in the
job_logsdirectory within the library path.
Acceptance Criteria
- When enabled in the config, running a job creates a corresponding
.logfile. - Progress, info, and error messages from the job context are written to the file.
- The logger respects the
include_debugconfiguration flag.