logging

package
v0.20.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package logging supplies common constants to ensure consistent use of structured logs.

Index

Constants

View Source
const (
	// SyncTargetKeyPrefix is the prefix used for all the keys related to a SyncTarget.
	SyncTargetKeyPrefix = "syncTarget."

	// SyncTargetWorkspace is used to specify a workspace when a log is related to a SyncTarget.
	SyncTargetWorkspace = SyncTargetKeyPrefix + "workspace"
	// SyncTargetNamespace is used to specify a namespace when a log is related to a SyncTarget.
	SyncTargetNamespace = SyncTargetKeyPrefix + "namespace"
	// SyncTargetName is used to specify a name when a log is related to a SyncTarget.
	SyncTargetName = SyncTargetKeyPrefix + "name"
	// SyncTargetKey is used to specify the obfuscated key of a SyncTarget as used in the Syncer labels and annotations.
	SyncTargetKey = SyncTargetKeyPrefix + "key"

	// DownstreamKeyPrefix is the prefix used for all the keys related to a downstream object.
	DownstreamKeyPrefix = "downstream."

	// DownstreamNamespace is used to specify a namespace when a log is related to a downstream object.
	DownstreamNamespace = DownstreamKeyPrefix + "namespace"
	// DownstreamName is used to specify a name when a log is related to a downstream object.
	DownstreamName = DownstreamKeyPrefix + "name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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