ginlog

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() gin.HandlerFunc

Logger returns default logger echo middleware

func LoggerWithConfig

func LoggerWithConfig(conf httplog.LoggerConfig) gin.HandlerFunc

LoggerWithConfig instance a Logger middleware with config.

func LoggerWithFormatter

func LoggerWithFormatter(f httplog.LogFormatter) gin.HandlerFunc

LoggerWithFormatter instance a Logger middleware with the specified log format function.

func LoggerWithFormatterAndName

func LoggerWithFormatterAndName(routerName string, f httplog.LogFormatter) gin.HandlerFunc

LoggerWithFormatterAndName instance a Logger middleware with the specified log format function.

func LoggerWithName

func LoggerWithName(routerName string) gin.HandlerFunc

LoggerWithName instance a Logger middleware with the specified name prefix.

func LoggerWithWriter

func LoggerWithWriter(out io.Writer, notlogged ...string) gin.HandlerFunc

LoggerWithWriter instance a Logger middleware with the specified writer buffer. Example: os.Stdout, a file opened in write mode, a socket...

Types

This section is empty.

Jump to

Keyboard shortcuts

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