log

package
v0.0.0-...-2759aa6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Store is the unique name of the logger store
	Store = datadir.Store("logs")
	// LogFile is the name of the log file
	LogFile = "internal.log"
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() zoup.Writer

GetLogger returns the global logger.

func Log

func Log(level zoup.Level, message string, fields zoup.Fields)

Log logs an internal event to the global logger

func SetLogger

func SetLogger(w zoup.Writer)

SetLogger sets the global logger to a given writer.

func Tail

func Tail(path string, opts TailOptions) (<-chan string, error)

Types

type TailOptions

type TailOptions struct {
	Stream   bool
	Backfill int
}

Jump to

Keyboard shortcuts

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