package journal

Import Path
	github.com/coreos/go-systemd/journal (on go.dev)

Dependency Relation
	imports 14 packages, and imported by one package

Involved Source Files Package journal provides write bindings to the local systemd journal. It is implemented in pure Go and connects to the journal directly over its unix socket. To read from the journal, see the "sdjournal" package, which wraps the sd-journal a C API. http://www.freedesktop.org/software/systemd/man/systemd-journald.service.html
Package-Level Type Names (only one)
/* sort by: | */
Priority of a journal message func Print(priority Priority, format string, a ...interface{}) error func Send(message string, priority Priority, vars map[string]string) error const PriAlert const PriCrit const PriDebug const PriEmerg const PriErr const PriInfo const PriNotice const PriWarning
Package-Level Functions (total 3)
Enabled checks whether the local systemd journal is available for logging.
Print prints a message to the local systemd journal using Send().
Send a message to the local systemd journal. vars is a map of journald fields to values. Fields must be composed of uppercase letters, numbers, and underscores, but must not start with an underscore. Within these restrictions, any arbitrary field name may be used. Some names have special significance: see the journalctl documentation (http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html) for more details. vars may be nil.
Package-Level Constants (total 8)
const PriAlert Priority = 1
const PriCrit Priority = 2
const PriDebug Priority = 7
const PriEmerg Priority = 0
const PriErr Priority = 3
const PriInfo Priority = 6
const PriNotice Priority = 5
const PriWarning Priority = 4