auditlog

package
v0.0.0-...-b04d5d2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogWithUser

func LogWithUser(r *http.Request, user, action string, body interface{})

LogWithUser is used to create structured logs for auditable actions.

This is only intended to be used on GKE, since by default GKE is configured to handle structured logs emitted on stdout and stderr.

See: https://cloud.google.com/logging/docs/structured-logging

user should be an identifier for the user from the login system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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