package journal

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/coreos/go-systemd/journal"

Package journal provides write bindings to the systemd journal

Index

Functions

func Enabled

func Enabled() bool

Enabled returns true iff the systemd journal is available for logging

func Send

func Send(message string, priority Priority, vars map[string]string) error

Send a message to the 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.

Types

type Priority

type Priority int

Priority of a journal message

const (
	PriEmerg Priority = iota
	PriAlert
	PriCrit
	PriErr
	PriWarning
	PriNotice
	PriInfo
	PriDebug
)

Source Files

send.go

Version
v1.2.0-alpha.3
Published
Nov 3, 2015
Platform
linux/amd64
Imports
11 packages
Last checked
1 minute ago

Tools for package owners.