Skip to content
v5

This release adds a number of new methods for working with the journal and exposing more information about systemd, as well as a minor bugfix and small internal code cleanup.

- Add several new functions to sdjournal: AddDisjunction, AddConjunction, GetDataValue, FlushMatches, SetDataThreshold
- Add ability to load journal from custom directory (sdjournal.NewJournalFromDir)
- Add GetManagerProperty to dbus to obtain systemd1.manager interface properties
- Add several utility functions to detect information when invoked from systemd (GetRunningSlice, RunningFromSystemService, CurrentUnitName, GetMachineID)
- Add login1.Inhibit and login1.Subscribe
- Add dbus.ListUnitFiles
- Correctly propagate error during sdjournal.AddMatch