logmetry

package module
v0.0.0-...-155a503 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 4 Imported by: 0

README

logmetry

A logging and telemetry package

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the global variable for logging
	Logger *zap.SugaredLogger
)

Functions

func Fatal

func Fatal(err error)

Fatal for logging fatal errors

func InitLogger

func InitLogger(debug, disable bool) (err error)

InitLogger initialize the logger variable

func NewLogger

func NewLogger(debug, disable bool) (*zap.SugaredLogger, error)

NewLogger is the factory method to return the instance of logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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