logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Zap *zap.SugaredLogger
}

Logger is an alternative implementation of *gorm.Logger

func NewLogger

func NewLogger(cfg *config.EnvConfig) *Logger

NewLogger create logger object for *gorm.DB from *echo.Logger

func (*Logger) GetZapLogger

func (log *Logger) GetZapLogger() *zap.SugaredLogger

GetZapLogger returns zapSugaredLogger

Jump to

Keyboard shortcuts

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