logging

package
v0.0.0-...-b9b5e9f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(ctx context.Context) *zap.Logger

func NewStoreLogger

func NewStoreLogger(ctx context.Context, storeName, actionName string, fields ...zap.Field) (context.Context, *zap.Logger)

func SetLogLevel

func SetLogLevel(l zapcore.Level)

func UseOperationLogging

func UseOperationLogging() func(request *restful.Request, response *restful.Response, chain *restful.FilterChain)

func UseRequestID

func UseRequestID(next http.Handler) http.Handler

func UseRequestLogging

func UseRequestLogging(next http.Handler) http.Handler

func WithAuthnSubject

func WithAuthnSubject(ctx context.Context, subject string) context.Context

func WithExe

func WithExe(ctx context.Context) context.Context

func WithFields

func WithFields(ctx context.Context, fields ...zap.Field) context.Context

func WithHandlerName

func WithHandlerName(ctx context.Context, handlerName string) context.Context

func WithMiddleware

func WithMiddleware(ctx context.Context, middleware string) context.Context

func WithOperation

func WithOperation(ctx context.Context, routeName string) context.Context

func WithPID

func WithPID(ctx context.Context) context.Context

func WithRequestID

func WithRequestID(ctx context.Context, requestId string) context.Context

func WithServerName

func WithServerName(ctx context.Context, serverName string) context.Context

func WithSessionID

func WithSessionID(ctx context.Context, sessionId string) context.Context

func WithStore

func WithStore(ctx context.Context, storeName, actionName string, fields ...zap.Field) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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