logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(loggerInstance LoggerType)

SetLogger is initialize log library

Types

type Logger

type Logger interface {
	Error(msg string)
	Errorf(msg string, args ...interface{})

	Warn(msg string)
	Warnf(msg string, args ...interface{})

	Debug(msg string)
	Debugf(msg string, args ...interface{})

	Info(msg string)
	Infof(msg string, args ...interface{})

	Fatal(msg string)
	Fatalf(msg string, args ...interface{})
}
var Log Logger

type LoggerType

type LoggerType string
const (
	// BasicLogger is the basic logger
	BasicLogger LoggerType = "basic"

	// ZapLogger is the zap logger
	ZapLogger LoggerType = "zap"
)

Jump to

Keyboard shortcuts

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