journal

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Journal

type Journal interface {
	io.Closer
	Log(status entry.Level, event string, req []byte, res []byte, err error) error
	Info(event string, req []byte, res []byte) error
	Warn(event string, req []byte, res []byte, err error) error
	Error(event string, req []byte, res []byte, err error) error
	Rotate() error
}

func NewFileJournal

func NewFileJournal(loggerConfig log.Config, moduleName, host string, opts ...Option) Journal

type Option

type Option func(journal *fileJournal)

func WithAfterRotation

func WithAfterRotation(callback func(log log.LogFile)) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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