Improve logutils abstraction for internal jobs logs submission endpoint
- Avoid loading yaml multiple times.
Instead pass the already parsed yaml to
write_linemethod. This new method replaces
- Fix LogsFilesystem file descriptors not being properly closed by moving all file logic inside the LogsFilesystem. That class also now handles adding new lines to the ends of the passed logged lines.