Registry / logging / coreos-go-systemd

coreos-go-systemd

JSON →
librarygogounverified

A Go library for interacting with systemd, including journal logging and socket activation.

go get github.com/coreos/go-systemd
INSTALL
IMPORT
SIG · COREOS-GO-SYSTEMD
C
coreos-go-systemd
logginggo
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

journal
✓ github.com/coreos/go-systemd/journal

Send a log message to the systemd journal.

package main import ( "github.com/coreos/go-systemd/journal" ) func main() { journal.Send("Hello systemd", journal.PriInfo, nil) }
Debug
Known issues
gotchaThe library is designed for Linux systems with systemd; it will not work on other platforms.
fix
Use build tags or conditional compilation to avoid importing on non-Linux systems.
affects: all
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
60 hits · last 30 days
node
52
OpenAI (training)
1
Resources
coreos-go-systemd — go get coreos-go-systemd · libregistry