journald

package
v4.0.0-...-ae7b6de Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: GPL-3.0, MIT Imports: 5 Imported by: 0

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

type JournalHook struct{}

func (*JournalHook) Fire

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

Fire fires an entry into the journal.

func (*JournalHook) Levels

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