log

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package log centralises the logging infrastructure of the tool. It's based on uber zap library.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Level is the atomic level that will be used for logging with the default
	// logger of the library. When injecting a new zap logger ensure the Level
	// field points to this one.
	//
	// Level is used by the cmd package when creating the root command, which
	// supports a flag to enable debug log level.
	Level = zap.NewAtomicLevelAt(zapcore.InfoLevel)
)

Functions

func S

func S() *zap.SugaredLogger

S returns the zap sugared logger from the current logger instance.

func SetLogger

func SetLogger(newLogger *zap.Logger)

SetLogger replaces the logger instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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