log

package module
v0.0.0-...-951b98b Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 5 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinErrorLogger

func GinErrorLogger() gin.HandlerFunc

GinErrorLogger returns a gin handler func for errors

func GinErrorLoggerT

func GinErrorLoggerT(t gin.ErrorType) gin.HandlerFunc

GinErrorLoggerT returns a gin handler middleware with the given type gin.ErrorType.

func GinLogger

func GinLogger(duration time.Duration, logger *zap.Logger) gin.HandlerFunc

GinLogger returns a gin handler func for all logging

func InitLogger

func InitLogger(logPath string, loglevel string, maxSize int, maxBackups int, maxAge int, compress bool) *zap.Logger

InitLogger Initialize a new logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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