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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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