Commit Graph

9 Commits

Author SHA1 Message Date
Itxaka
0798868e7e
Add an extra method to be able to pass extra dirs to logger (#600) 2025-05-13 08:59:43 +02:00
Itxaka
2f206da0fd
Fix journald logging (#597) 2025-05-08 14:49:09 +02:00
Itxaka
571996d6ba
Be able to build the logger on windows (#596)
Seems like provider can build for windows for the kairosctl command and
it would fail due to the systemd libs not being available to build under
windows so we need to protect against that

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-05-06 11:19:17 +02:00
Itxaka
2078966079
Improve journald logger (#586)
* Improve journald logger

tag the logs with the identifier so they can be found easily with
journald


---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-02 14:16:56 +02:00
Itxaka
aa62f8ba73
Improve logger (#566)
* 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>
2025-02-24 11:34:54 +01:00
Itxaka
ea5c6c7028
Bring GHW clone and partition type into sdk (#492) 2024-09-12 15:25:19 +02:00
Itxaka
1c55cf24d3
This makes it so it implements other logger interfaces fully (#72) 2024-03-01 11:53:08 +01:00
Itxaka
b3dfedfacb Add milliseconds to log files
Signed-off-by: Itxaka <itxaka@kairos.io>
2024-03-01 09:35:17 +01:00
Itxaka
e0ea9975a4
New logger (#70) 2024-02-28 09:29:02 +01:00