Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(ctx context.Context, msg string, args ...any)
- func GrpcInterceptorLogger() logging.Logger
- func InitDefaultLoggerWithConsole(logOutput io.Writer)
- func Logger(ctx context.Context) *slog.Logger
- func Panic(msg string, args ...any)
- func SetRootLogLevel(level slog.Level)
- func SlogAttrCommand(cmd, workDir string, args []string, customAttrs ...slog.Attr) slog.Attr
- func SlogAttrError(err error) slog.Attr
- func SlogAttrFilePath(filePath string) slog.Attr
- func SlogAttrMap[M ~map[K]V, K comparable, V any](key string, value M) slog.Attr
- func SlogAttrSlice[S ~[]T, T any](key string, value S) slog.Attr
- func SlogAttrSliceWithSeparator[S ~[]T, T any](key, separator string, value S) slog.Attr
- func SlogAttrUUID(key string, value uuid.UUID) slog.Attr
- func WithLogger(ctx context.Context, l *slog.Logger) context.Context
Constants ¶
View Source
const (
MsgReceiveRequest = "Receive request"
)
Variables ¶
View Source
var ( GrpcLogInterceptorOpts = []logging.Option{ logging.WithLogOnEvents(logging.StartCall, logging.FinishCall), } )
Functions ¶
func GrpcInterceptorLogger ¶
func SetRootLogLevel ¶
func SlogAttrCommand ¶
func SlogAttrError ¶
func SlogAttrFilePath ¶
func SlogAttrMap ¶
func SlogAttrMap[M ~map[K]V, K comparable, V any](key string, value M) slog.Attr
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.