Movatterモバイル変換


[0]ホーム

URL:


loggermw

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:10Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcLogger

func Logger(logslog.Logger) func(nexthttp.Handler)http.Handler

Types

typeRequestLogger

type RequestLogger interface {WithFields(fields ...slog.Field)WriteLog(ctxcontext.Context, statusint)WithAuthContext(actorrbac.Subject)}

funcNewRequestLogger

func NewRequestLogger(logslog.Logger, messagestring, starttime.Time)RequestLogger

funcRequestLoggerFromContext

func RequestLoggerFromContext(ctxcontext.Context)RequestLogger

typeSlogRequestLogger

type SlogRequestLogger struct {// contains filtered or unexported fields}

func (*SlogRequestLogger)WithAuthContext

func (c *SlogRequestLogger) WithAuthContext(actorrbac.Subject)

func (*SlogRequestLogger)WithFields

func (c *SlogRequestLogger) WithFields(fields ...slog.Field)

func (*SlogRequestLogger)WriteLog

func (c *SlogRequestLogger) WriteLog(ctxcontext.Context, statusint)

Source Files

View all Source files

Directories

PathSynopsis
Package loggermock is a generated GoMock package.
Package loggermock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp