* Improve journald logger
tag the logs with the identifier so they can be found easily with
journald
---------
Signed-off-by: Itxaka <itxaka@kairos.io>
* Improve logger
- Try to log to jorunald if available
- fallback to file writing if not
- write to single file instead of appending times
- add a locking mechanism so several processes cant write to the same
file
- prepend the PID of the process if we are running outside journald for
easy tracking of grouped messages
Signed-off-by: Itxaka <itxaka@kairos.io>
* Simplify
Signed-off-by: Itxaka <itxaka@kairos.io>
---------
Signed-off-by: Itxaka <itxaka@kairos.io>