log

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package log contains the shared logger used by the project

Index

Constants

This section is empty.

Variables

View Source
var (
	// Level is the logging level
	Level = z.NewAtomicLevelAt(zapcore.InfoLevel)

	Log = zap.New(zap.WriteTo(os.Stderr), zap.Level(Level)).WithName("usage-metrics-collector")
)

Functions

func LoadLevel

func LoadLevel(filename string, last int) (int, error)

func WatchLevel

func WatchLevel(filename string) (*fsnotify.Watcher, chan interface{}, error)

WatchLevel will update the Log level when the filename changes. filename is the path to a file containing an integer log level value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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