journald

package
v4.0.4-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2023 License: GPL-3.0, MIT Imports: 5 Imported by: 6

Documentation

Overview

Package journald was copied directly from https://github.com/wercker/journalhook, where this library was previously hosted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable() error

Enable adds the Journal hook if journal is enabled Sets log output to ioutil.Discard so stdout isn't captured.

Types

type JournalHook added in v4.0.3

type JournalHook struct{}

func (*JournalHook) Fire added in v4.0.3

func (hook *JournalHook) Fire(entry *logrus.Entry) error

Fire fires an entry into the journal.

func (*JournalHook) Levels added in v4.0.3

func (hook *JournalHook) Levels() []logrus.Level

Levels returns a slice of `Levels` the hook is fired for.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL