Daily JSON Log File Creation
As a system administrator, I want to the system to write backup activity into a daily JSON file, So that I can easily track, review, and archive the backup history day by day.
Given a backup runs on a specific date,
When the logger writes the first entry,
Then it creates a file named YYYY-MM-DD.json in the designated log folder.
Given multiple files are backed up on the same day,
When the logger is called,
Then it appends the new entries to the existing daily log file rather than overwriting it.
Given a log entry is recorded,
When the file is opened in a basic editor like Notepad,
Then the JSON elements are separated by line breaks to ensure human readability.