logger

package
Version: v0.0.0-...-5dc576f Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package logger is based on: https://github.com/gin-contrib/logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(port string, config ...Config) gin.HandlerFunc

New initializes the logging middleware.

Types

type Config

type Config struct {
	Stdout *zerolog.Logger
	Stderr *zerolog.Logger
	// UTC a boolean stating whether to use UTC time zone or local.
	UTC      bool
	Routes   []Route
	SkipPath []string
}

Config defines the config for logger middleware

type Route

type Route struct {
	Method       string
	RelativePath string
	LogPayload   bool
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL