log

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGinLogger

func NewGinLogger(logger dazl.Logger) gin.HandlerFunc

NewGinLogger returns a gin.HandlerFunc (middleware) that logs requests using dazl

Requests with errors are logged using dazl.Errorw(). Requests without errors are logged using dazl.Infow().

func NewWriter

func NewWriter(log dazl.Logger) io.Writer

Types

type GinLogger

type GinLogger struct {
	// contains filtered or unexported fields
}

GinLogger a custom gin logger using dazl logger

type WriteFunc

type WriteFunc func([]byte) (int, error)

WriteFunc convert func to io.Writer.

func (WriteFunc) Write

func (fn WriteFunc) Write(data []byte) (int, error)

Write overwrites write method for gin logger

Jump to

Keyboard shortcuts

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