echolog

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: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() func(next echo.HandlerFunc) echo.HandlerFunc

Logger returns default logger echo middleware

func LoggerWithConfig

func LoggerWithConfig(conf httplog.LoggerConfig) func(next echo.HandlerFunc) echo.HandlerFunc

LoggerWithConfig instance a Logger middleware with config.

func LoggerWithFormatter

func LoggerWithFormatter(f httplog.LogFormatter) func(next echo.HandlerFunc) echo.HandlerFunc

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

func LoggerWithFormatterAndName

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

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

func LoggerWithName

func LoggerWithName(routerName string) func(next echo.HandlerFunc) echo.HandlerFunc

LoggerWithName instance a Logger middleware with the specified name prefix.

func LoggerWithWriter

func LoggerWithWriter(out io.Writer, notlogged ...string) func(next echo.HandlerFunc) echo.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