Categorygithub.com/samuelmachado/go-core/log
modulepackage
0.1.0
Repository: https://github.com/samuelmachado/go-core.git
Documentation: pkg.go.dev

# README

Log

This package sets a standard for using logs. In the future, we will implement the automatic retrieval of the requestID through tracing, thus making it transparent for the dev

Installation

go get github.com/samuelmachado/go-core/log

Usage

See examples documentation.

# Functions

Any receive any value to be add into logger.
Error handle errors to be given to looger function.
NewLoggerZap creates an new instance of Zap logger.

# Structs

Field is the way the parameters is received by logger.
Fields are the slice of fields that are handled internaly by logger function.
Zap wraps a zap.Logger and implements Logger inteface.
ZapConfig handle the config information that will be passed to zap.

# Interfaces

go:generate mockgen -destination logger_mock.go -package=log .