ginlog

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog(f ...func(c *gin.Context, e *zerolog.Event) *zerolog.Event) gin.HandlerFunc

func JsonLog

func JsonLog(c *gin.Context, f func(c *gin.Context, e *zerolog.Event), filters ...func(c *gin.Context, e *zerolog.Event) *zerolog.Event)

func TraceRequest

func TraceRequest(options ...Option) gin.HandlerFunc

Types

type Option added in v0.1.0

type Option func(o *option)

func WithDump added in v0.1.0

func WithDump(dump bool) Option

WithDump はリクエストヘッダーのダンプを有効または無効にします。 デフォルトはfalseです。

Jump to

Keyboard shortcuts

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