authlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package authlog emits bounded authorization audit events through log/slog. Loggers constructed by log use this standard logger type directly.

Index

Constants

This section is empty.

Variables

View Source
var ErrNilLogger = errors.New("authorization audit logger is nil")

Functions

This section is empty.

Types

type Instrumenter

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

func New

func New(logger *slog.Logger, level slog.Level) (*Instrumenter, error)

func (*Instrumenter) Start

func (instrumenter *Instrumenter) Start(
	ctx context.Context,
) (context.Context, func(authorization.Event))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL