Improve logutils abstraction for internal jobs logs submission endpoint
- Avoid loading yaml multiple times.
Instead pass the already parsed yaml to
write_line
method. This new method replaceswrite
method. - 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.