log

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package log implements various logrus hooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileHookFromConfigLine

func FileHookFromConfigLine(
	ctx context.Context, fs afero.Fs, getCwd func() (string, error),
	fallbackLogger logrus.FieldLogger, line string, done chan struct{},
) (logrus.Hook, error)

FileHookFromConfigLine returns new fileHook hook.

func LokiFromConfigLine

func LokiFromConfigLine(
	ctx context.Context, fallbackLogger logrus.FieldLogger, line string, ch chan<- struct{},
) (logrus.Hook, error)

LokiFromConfigLine returns a new logrus.Hook that pushes logrus.Entrys to loki and is configured through the provided line

Types

This section is empty.

Jump to

Keyboard shortcuts

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