package journal
import "github.com/coreos/go-systemd/v22/journal"
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 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
Index ¶
- func Enabled() bool
- func Print(priority Priority, format string, a ...interface{}) error
- func Send(message string, priority Priority, vars map[string]string) error
- func StderrIsJournalStream() (bool, error)
- func StdoutIsJournalStream() (bool, error)
- type Priority
Functions ¶
func Enabled ¶
func Enabled() bool
func Print ¶
Print prints a message to the local systemd journal using Send().
func Send ¶
func StderrIsJournalStream ¶
func StdoutIsJournalStream ¶
Types ¶
type Priority ¶
type Priority int
Priority of a journal message
Source Files ¶
- Version
- v22.5.0 (latest)
- Published
- Nov 7, 2022
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 2 days ago –
Tools for package owners.