Replace terminal UI with a more readable logger when src actions exec is run in verbose mode
Created by: mrnugget
When src action exec
previously ran in verbose-mode with the -v
flag, it looked like this:
With the changes in this PR it looks like this:
Please note: I didn't focus on the details (such as colors, exact words in message, etc). The goal was to untangle the logging from the actionExecutor
and the terminal UI, while keeping the behavior in place:
- In verbose mode, repo-specific log messages are sent to standard error and to a repo-specific log file
- When not in verbose mode, repo-specific log messages are only sent to repo-specific log file
- Log files are cleaned up if not
-keep-logs
flag is given or the repo didn't produce an error
This fixes #119 (closed)