logz

package
v14.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentConfig        = "agent_config"
	AgentFeatureName   = "feature_name"
	AgentFeatureStatus = "feature_status"
)

These constants are for type-safe zap field helpers that are not here to: - avoid adding a dependency or - because they are not generally useful. Field names are here to make it possible to see all field names that are in use.

Variables

This section is empty.

Functions

func AgentId

func AgentId(agentId int64) zap.Field

func CommitId

func CommitId(commitId string) zap.Field

func ConnectionId

func ConnectionId(connectionId int64) zap.Field

func CorrelationId

func CorrelationId(correlationId string) zap.Field

func CorrelationIdFromContext

func CorrelationIdFromContext(ctx context.Context) zap.Field

func Error added in v14.1.0

func Error(err error) zap.Field

func GrpcMethod

func GrpcMethod(method string) zap.Field

func GrpcService

func GrpcService(service string) zap.Field

func IsWebSocket

func IsWebSocket(isWebSocket bool) zap.Field

func KasUrl

func KasUrl(kasUrl string) zap.Field

func LevelFromString

func LevelFromString(levelStr string) (zapcore.Level, error)

func LoggerWithLevel

func LoggerWithLevel(level zapcore.LevelEnabler) *zap.Logger

func ModuleName

func ModuleName(name string) zap.Field

GitLab-kas or agentk module name.

func NetAddress

func NetAddress(listenAddress string) zap.Field

func NetAddressFromAddr

func NetAddressFromAddr(addr net.Addr) zap.Field

func NetNetwork

func NetNetwork(listenNetwork string) zap.Field

func NetNetworkFromAddr

func NetNetworkFromAddr(addr net.Addr) zap.Field

func NoSync

func NoSync(w io.Writer) zapcore.WriteSyncer

NoSync can be used to wrap a io.Writer that implements zapcore.WriteSyncer but does not actually support the Sync() operation. An example is os.Stderr that returns "sync /dev/stderr: inappropriate ioctl for device" on sync attempt.

func NumberOfFilesSent

func NumberOfFilesSent(n uint32) zap.Field

func NumberOfFilesVisited

func NumberOfFilesVisited(n uint32) zap.Field

func ProjectId

func ProjectId(projectId string) zap.Field

The human-readable GitLab project path (e.g. gitlab-org/gitlab).

func RedisKey

func RedisKey(key []byte) zap.Field

Use for any keys in Redis.

func RemovedHashKeys

func RemovedHashKeys(n int) zap.Field

func SentryDSN

func SentryDSN(sentryDSN string) zap.Field

func SentryEnv

func SentryEnv(sentryEnv string) zap.Field

func TokenLimit

func TokenLimit(limit uint64) zap.Field

Use for any integer counters.

func U64Count

func U64Count(count uint64) zap.Field

Use for any integer counters.

func UrlPath

func UrlPath(url string) zap.Field

func UrlPathPrefix

func UrlPathPrefix(urlPrefix string) zap.Field

Types

This section is empty.

Jump to

Keyboard shortcuts

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