Back to

Package lxLogMiddleware

Latest Go to latest

The latest major version is .

Published: Sep 21, 2020 | License: MIT | Module:



var (
	DefaultEchoLoggerConfig = EchoLoggerConfig{
		Skipper:         middleware.DefaultSkipper,
		Logger:          lxLog.GetLogger(),
		LoggerOutFormat: lxLog.GetOutFormat(),


func EchoLogger

func EchoLogger() echo.MiddlewareFunc

EchoLogger returns an EchoLogger middleware with default config. Default config based on logger init Usage: e.Use(lxLogMiddleware.EchoLogger())

func EchoLoggerWithConfig

func EchoLoggerWithConfig(config EchoLoggerConfig) echo.MiddlewareFunc

EchoLoggerWithConfig returns an EchoLogger middleware with custom config. Usage: e.Use(lxLogMiddleware.EchoLoggerWithConfig(lxLogMiddleware.EchoLoggerConfig {

Logger: log,
OutFormat: lxLog.FormatText,


type EchoLoggerConfig

type EchoLoggerConfig struct {
	// Skipper defines a function to skip middleware.

	// Logger instance
	Logger *logrus.Logger

	// LoggerOutFormat format for output.
	LoggerOutFormat lxLog.OutFormat

EchoLoggerConfig defines the config for EchoLoggerConfig middleware.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier