logging

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpAccessLogEntry

type HttpAccessLogEntry struct {
	Context  *fiber.Ctx
	Duration time.Duration
	// contains filtered or unexported fields
}

type HttpAccessLogger

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

func NewHttpAccessLogger

func NewHttpAccessLogger(cfg *config.Config, mainLogger *zap.Logger) (*HttpAccessLogger, error)

func (*HttpAccessLogger) End

Called when the http request is complete

func (*HttpAccessLogger) Start

func (l *HttpAccessLogger) Start(ctx *fiber.Ctx) *HttpAccessLogEntry

Starts logging a http request

type IServerLogger

type IServerLogger interface {
	Use(app *fiber.App) *zap.Logger
}

type ServerLogger

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

func NewServerLogger

func NewServerLogger(logger *zap.Logger) *ServerLogger

func (*ServerLogger) Use

func (s *ServerLogger) Use(app *fiber.App) *zap.Logger

Jump to

Keyboard shortcuts

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