logger

package
v0.0.0-...-e2054a2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OutputFormatJSON is used to define output format as json
	OutputFormatJSON OutputFormat = "json"

	// OutputFormatPlain is used to define output format as plain text
	OutputFormatPlain OutputFormat = "plain"

	// KeyError is used as a named key for a log message with error.
	KeyError = "error"

	// KeyResult is used as a named key for a log message with result.
	KeyResult = "result"

	// KeySubAccountID is used as a named key for a log message with subaccount ID.
	KeySubAccountID = "SubAccountID"

	// KeyRuntimeID is used as a named key for a log message with runtime ID.
	KeyRuntimeID = "RuntimeID"

	// KeyRuntimeState is used as a named key for a log message with runtime state.
	KeyRuntimeState = "RuntimeState"

	// KeyProvisioningStatus is used as a named key for a log message with provisioning status.
	KeyProvisioningStatus = "ProvisioningStatus"

	// KeyDeprovisioningStatus is used as a named key for a log message with deprovisioning status.
	KeyDeprovisioningStatus = "DeprovisioningStatus"

	// KeyWorkerID is used as a named key for a log message with worker ID.
	KeyWorkerID = "WorkerID"

	// KeyRetry is used as named key for a log message which indicates the step will be retried
	KeyRetry = "willRetry"

	// KeyRequeue is used as named key for a log message which indicates that it will be requeued
	KeyRequeue = "requeue"

	// KeyShoot is used as a named key for a log message with shoot.
	KeyShoot = "shoot"

	// ValueFail is used as a value for a log message with failure.
	ValueFail = "fail"

	// ValueSuccess is used as a value for a log message with success.
	ValueSuccess = "success"

	// ValueTrue is used as a value for a message with true status
	ValueTrue = "true"

	// ValueFalse is used as a value for a message with true status
	ValueFalse = "false"
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logLevel zapcore.Level) *zap.SugaredLogger

func SetOutputFormat

func SetOutputFormat(of OutputFormat)

SetOutputFormat sets the log output format

Types

type OutputFormat

type OutputFormat string

Jump to

Keyboard shortcuts

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