Documentation
¶
Index ¶
- func NewLogger(ctx context.Context) *zap.Logger
- func NewStoreLogger(ctx context.Context, storeName, actionName string, fields ...zap.Field) (context.Context, *zap.Logger)
- func SetLogLevel(l zapcore.Level)
- func UseOperationLogging() func(request *restful.Request, response *restful.Response, ...)
- func UseRequestID(next http.Handler) http.Handler
- func UseRequestLogging(next http.Handler) http.Handler
- func WithAuthnSubject(ctx context.Context, subject string) context.Context
- func WithExe(ctx context.Context) context.Context
- func WithFields(ctx context.Context, fields ...zap.Field) context.Context
- func WithHandlerName(ctx context.Context, handlerName string) context.Context
- func WithMiddleware(ctx context.Context, middleware string) context.Context
- func WithOperation(ctx context.Context, routeName string) context.Context
- func WithPID(ctx context.Context) context.Context
- func WithRequestID(ctx context.Context, requestId string) context.Context
- func WithServerName(ctx context.Context, serverName string) context.Context
- func WithSessionID(ctx context.Context, sessionId string) context.Context
- func WithStore(ctx context.Context, storeName, actionName string, fields ...zap.Field) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStoreLogger ¶
func SetLogLevel ¶
func UseOperationLogging ¶
func UseOperationLogging() func(request *restful.Request, response *restful.Response, chain *restful.FilterChain)
func WithHandlerName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.