journalLogger

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJournalHook

func NewJournalHook(writer IJournalWriter, fields map[string]interface{}) *journalHook

func SetJournalLogging

func SetJournalLogging(logger *logrus.Logger, journalWriter IJournalWriter, fields map[string]interface{})

Types

type IJournalWriter

type IJournalWriter interface {
	Send(msg string, p journald.Priority, fields map[string]interface{}) error
}

type JournalWriter

type JournalWriter struct{}

func (*JournalWriter) Send

func (*JournalWriter) Send(msg string, p journald.Priority, fields map[string]interface{}) error

type MockIJournalWriter

type MockIJournalWriter struct {
	mock.Mock
}

MockIJournalWriter is an autogenerated mock type for the IJournalWriter type

func (*MockIJournalWriter) Send

func (_m *MockIJournalWriter) Send(msg string, p journald.Priority, fields map[string]interface{}) error

Send provides a mock function with given fields: msg, p, fields

Jump to

Keyboard shortcuts

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