logging

package
v0.0.0-...-a101f2f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *config.Config) (pipeline.Filter, error)

func NewRequestRecord

func NewRequestRecord(c *config.Config) (pipeline.Filter, error)

Types

type Config

type Config struct {
	MinElaspsedTimeInMs int    `config:"min_elapsed_time_in_ms"`
	MaxRequestBodySize  int    `config:"max_request_body_size"`
	MaxResponseBodySize int    `config:"max_response_body_size"`
	SaveBulkDetails     bool   `config:"bulk_stats_details"`
	FormatHeaderKey     bool   `config:"format_header_keys"`
	RemoveAuthHeaderKey bool   `config:"remove_authorization"`
	QueueName           string `config:"queue_name"`
}

type RequestLogging

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

func (*RequestLogging) Filter

func (this *RequestLogging) Filter(ctx *fasthttp.RequestCtx)

func (*RequestLogging) Name

func (this *RequestLogging) Name() string

type RequestRecord

type RequestRecord struct {
	QueueName string `config:"queue_name"`
	FileName  string `config:"filename"`
	Verbose   bool   `config:"stdout"`
}

func (*RequestRecord) Filter

func (this *RequestRecord) Filter(ctx *fasthttp.RequestCtx)

func (*RequestRecord) Name

func (this *RequestRecord) Name() string

Jump to

Keyboard shortcuts

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