logger

package
v0.0.0-...-0397089 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEchoLogger

func GetEchoLogger() echo.Logger

GetEchoLogger is return echo's logger

func InitLogger

func InitLogger(e *echo.Echo, config *config.Config)

InitLogger initialize logger.

func MyLoggerMiddleware

func MyLoggerMiddleware(next echo.HandlerFunc) echo.HandlerFunc

MyLoggerMiddleware is middleware for logging the start and end of controller processes. ref: https://echo.labstack.com/cookbook/middleware

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is an alternative implementation of *gorm.Logger

func GetLogger

func GetLogger() *Logger

GetLogger is return Logger

func (*Logger) Print

func (l *Logger) Print(values ...interface{})

Print passes arguments to Println

func (*Logger) Println

func (l *Logger) Println(values []interface{})

Println format & print log

Jump to

Keyboard shortcuts

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