As it says on the tin.
Cool deal. If anyone’s looking for systemd service integration for Swift, there’s also:
This library helps with running a service through systemd and can kick the watchdog for you as well.
Indeed, I'm using your library to (amongst other things) test if the process is running under systemd
before selecting swift-log-systemd
.
I almost wonder if it would make sense to combine the projects together into a big swift-systemd package that includes all of our stuff together! :-O Plus more systemd integration for messaging and stuff...
Sure thing, do you want to absorb it and I’ll file a PR to update swift-log? I can mark my package as archived.
Alrighty sure! Let me have a look!
I would file a PR and do it for you but I'm kinda swamped right now :) I would merge the C shim into the one target, and then perhaps retain the distinct target for the logging (or not, up to you).
No worries dude. It's a small effort and I think it'll be nice to have for the package.
One of the goals I have for swift-systemd
is that if you import and use it in your project, you don't have to change any of your code if you want compatibility with Windows and macOS. Instead, it uses conditionals to only enable systemd functionality on Linux, wheras on non-Linux platforms all systemd functionality will have no effect.
So, I might add some conditionals as needed so that the package builds on Windows and macOS, and then I shall PR and include you for review!!
@lukeh I added you as a collaborator on the repo, here is the PR:
I updated the Example to do a multiplex logger to stdout as well as journald. Let me know what you think!
Great, updated all my dependencies provisionally, let me know when you've merged and we can file a PR to update swift-log
.
Merged and swift-log
PR filed :)