logging

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.0 Imports: 0 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogData

type LogData struct {
	RequestID      string
	URL            string
	HTTPStatusCode int
	Duration       int
	UserName       string
	Method         string
	RequestBody    any
	ResponseBody   any
}

type Writer added in v0.0.12

type Writer interface {
	LogRequest(data LogData)
	Info(msg string)
	Error(err error)
	ErrorMsg(msg string)
	Warn(msg string)
	Debug(msg string)
	AddStringField(key string, value string)
	AddIntField(key string, value int)
	AddAnyField(key string, value any)
	NewScope(value string) Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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