logger

package
v0.0.0-...-3bedab1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequestDetails

func LogRequestDetails(r *http.Request, filePath string, bytesSent int64, port string)

LogRequestDetails logs request details to latest.log

func SetupGinLogger

func SetupGinLogger() (io.Writer, error)

SetupGinLogger sets up GIN's logging output

Types

type MultiWriter

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

MultiWriter creates a writer that writes to multiple targets

func NewMultiWriter

func NewMultiWriter(writers ...io.Writer) *MultiWriter

NewMultiWriter creates a new MultiWriter

func (*MultiWriter) Write

func (t *MultiWriter) Write(p []byte) (n int, err error)

Write implements the io.Writer interface

Jump to

Keyboard shortcuts

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