common

package
v0.0.0-...-29697b6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProductNotFound   = errors.New("product not found")
	ErrProductIsGift     = errors.New("product is gift")
	ErrProductOutOfStock = errors.New("product is out of stock")
	ErrGiftsOutOfStock   = errors.New("gifts are out of stock")
)
View Source
var Logger = NewLog()

Functions

This section is empty.

Types

type Log

type Log struct {
	Logger *log.Logger
}

func NewLog

func NewLog() Log

func (Log) Log

func (l Log) Log(logLevel log.Level, msg ...string) string

Log log a message with a given level.

func (Log) LogDebug

func (l Log) LogDebug(msg ...string) string

LogDebug log a message in DEBUG level.

func (Log) LogError

func (l Log) LogError(msg ...string) string

LogError log a message in ERROR level.

func (Log) LogFatal

func (l Log) LogFatal(msg ...string) string

LogFatal log a message in FATAL level.

func (Log) LogInfo

func (l Log) LogInfo(msg ...string) string

LogInfo log a message in INFO level.

Jump to

Keyboard shortcuts

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