logger

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sensitivity_name = map[int32]string{
		0: "SENSITIVITY_UNSPECIFIED",
		1: "SENSITIVITY_PII",
		2: "SENSITIVITY_SECRET",
	}
	Sensitivity_value = map[string]int32{
		"SENSITIVITY_UNSPECIFIED": 0,
		"SENSITIVITY_PII":         1,
		"SENSITIVITY_SECRET":      2,
	}
)

Enum value maps for Sensitivity.

View Source
var (
	// optional string redact_format = 1286;
	E_RedactFormat = &file_logger_options_proto_extTypes[0]
	// optional string name = 1287;
	E_Name = &file_logger_options_proto_extTypes[1]
	// optional logger.Sensitivity sensitivity = 1288;
	E_Sensitivity = &file_logger_options_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_logger_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Sensitivity added in v1.46.2

type Sensitivity int32
const (
	// Unannotated default — safe to log.
	// Identifiers, IDs, timestamps, enums, status fields.
	Sensitivity_SENSITIVITY_UNSPECIFIED Sensitivity = 0
	// User-identifying or user-controlled data: display names, phone numbers,
	// metadata, attributes, custom headers, auth usernames, semi-public account
	// identifiers (AWS role ARNs, Azure account names).
	// Redacted by logger.Proto(); exposed by logger.UnredactedProto() for
	// operator-facing observability events.
	Sensitivity_SENSITIVITY_PII Sensitivity = 1
	// Credentials and authentication material: passwords, access keys, session
	// tokens, signing keys, API keys, ICE credentials.
	// ALWAYS redacted, including by logger.UnredactedProto().
	Sensitivity_SENSITIVITY_SECRET Sensitivity = 2
)

func (Sensitivity) Descriptor added in v1.46.2

func (Sensitivity) Enum added in v1.46.2

func (x Sensitivity) Enum() *Sensitivity

func (Sensitivity) EnumDescriptor deprecated added in v1.46.2

func (Sensitivity) EnumDescriptor() ([]byte, []int)

Deprecated: Use Sensitivity.Descriptor instead.

func (Sensitivity) Number added in v1.46.2

func (x Sensitivity) Number() protoreflect.EnumNumber

func (Sensitivity) String added in v1.46.2

func (x Sensitivity) String() string

func (Sensitivity) Type added in v1.46.2

Jump to

Keyboard shortcuts

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