Categorygithub.com/facily-tech/go-core/log
modulepackage
0.3.2
Repository: https://github.com/facily-tech/go-core.git
Documentation: pkg.go.dev

# README

Log

Installation

go get github.com/facily-tech/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 implements Logger using uber zap structured log package.
NewMockLogger creates a new mock instance.

# Structs

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

# Interfaces

Logger defines a common contract we should follow for each new log provider.