logging

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADERS = "headers"
	BODY    = "body"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fluentd

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

func GetFluentdInstance

func GetFluentdInstance() *Fluentd

func (*Fluentd) Emit

func (f *Fluentd) Emit(tag string, msg interface{}, level string) interface{}

type MessageDumper

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

func NewMessageDumper

func NewMessageDumper() *MessageDumper

func (*MessageDumper) DumpMessage

func (md *MessageDumper) DumpMessage(msg string) map[interface{}]interface{}

func (*MessageDumper) DumpRequest

func (md *MessageDumper) DumpRequest(r *http.Request) map[string]interface{}

func (*MessageDumper) DumpResponse

func (md *MessageDumper) DumpResponse(w http.ResponseWriter, body map[string]interface{}) map[string]interface{}

func (*MessageDumper) DumpResponseString

func (md *MessageDumper) DumpResponseString(w http.ResponseWriter, body string) map[string]interface{}

func (*MessageDumper) GetHeader

func (md *MessageDumper) GetHeader(name string) string

func (*MessageDumper) GetHeaders

func (md *MessageDumper) GetHeaders() map[string]string

func (*MessageDumper) SetHeader

func (md *MessageDumper) SetHeader(key string, value string)

Jump to

Keyboard shortcuts

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