log

package
v0.0.0-...-adead0c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectRequestf

func ConnectRequestf(ctx context.Context, info ConnectRequestInfo)

func Errorf

func Errorf(ctx context.Context, format string, args ...any)

func Infof

func Infof(ctx context.Context, format string, args ...any)

func New

func New()

func SetCloudTraceContext

func SetCloudTraceContext(ctx context.Context, xcTraceCtx string) context.Context

func WithStackTracef

func WithStackTracef(err error, format string, args ...any) error

Types

type ConnectRequestInfo

type ConnectRequestInfo struct {
	Status int
	Req    connect.AnyRequest
	Resp   connect.AnyResponse
}

type HTTPRequestLogResponseWriter

type HTTPRequestLogResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*HTTPRequestLogResponseWriter) Write

func (lrw *HTTPRequestLogResponseWriter) Write(buf []byte) (int, error)

func (*HTTPRequestLogResponseWriter) WriteHeader

func (lrw *HTTPRequestLogResponseWriter) WriteHeader(code int)

type RequestTimeKey

type RequestTimeKey struct{}

type SpanIDKey

type SpanIDKey struct{}

type TraceIDKey

type TraceIDKey struct{}

Jump to

Keyboard shortcuts

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