Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRequestLogger ¶
func WithRequestLogger(ctx context.Context, rl RequestLogger) context.Context
Types ¶
type RequestLogger ¶
type RequestLogger interface { WithFields(fields ...slog.Field) WriteLog(ctx context.Context, status int) WithAuthContext(actor rbac.Subject) }
func NewRequestLogger ¶
func RequestLoggerFromContext ¶
func RequestLoggerFromContext(ctx context.Context) RequestLogger
type SlogRequestLogger ¶
type SlogRequestLogger struct {
// contains filtered or unexported fields
}
func (*SlogRequestLogger) WithAuthContext ¶
func (c *SlogRequestLogger) WithAuthContext(actor rbac.Subject)
func (*SlogRequestLogger) WithFields ¶
func (c *SlogRequestLogger) WithFields(fields ...slog.Field)
Directories
¶
Path | Synopsis |
---|---|
Package loggermock is a generated GoMock package.
|
Package loggermock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.