logfields

package
v1.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FieldAdditionalMessage    = "additionalMessage"
	FieldCommand              = "command"
	FieldConcurrencyRequests  = "concurrencyRequests"
	FieldDockerComposeCmd     = "dockerComposeCmd"
	FieldEvent                = "event"
	FieldIDToken              = "idToken"
	FieldTransactionID        = "transactionId"
	FieldJSONQuery            = "JSONQuery"
	FieldJSONResolution       = "JSONResolution"
	FieldPresDefID            = "presDefID"
	FieldProfileID            = "profileID"
	FieldProfileVersion       = "profileVersion"
	FieldCredentialID         = "credentialID" //nolint:gosec
	FieldResponses            = "responses"
	FieldSleep                = "sleep"
	FieldTotalRequests        = "totalRequests"
	FieldUserLogLevel         = "userLogLevel"
	FieldVP                   = "vp"
	FieldVPToken              = "vpToken"
	FieldWorkers              = "workers"
	FieldClaimKeys            = "claimKeys"
	FieldCredentialTemplateID = "credentialTemplateID" //nolint:gosec
	FieldJSONSchemaID         = "jsonSchemaID"
	FieldJSONSchema           = "jsonSchema"
)

Log Fields.

Variables

This section is empty.

Functions

func WithAdditionalMessage

func WithAdditionalMessage(value string) zap.Field

WithAdditionalMessage sets the AdditionalMessage field.

func WithClaimKeys

func WithClaimKeys(claimKeys []string) zap.Field

WithClaimKeys sets the Claim fields.

func WithCommand

func WithCommand(command string) zap.Field

WithCommand sets the Command field.

func WithConcurrencyRequests

func WithConcurrencyRequests(concurrencyRequests int) zap.Field

WithConcurrencyRequests sets the ConcurrencyRequests field.

func WithCredentialID

func WithCredentialID(credentialID string) zap.Field

WithCredentialID sets the CredentialID field.

func WithCredentialTemplateID added in v1.3.0

func WithCredentialTemplateID(value string) zap.Field

WithCredentialTemplateID sets the credentialTemplateID field.

func WithDockerComposeCmd

func WithDockerComposeCmd(dockerComposeCmd string) zap.Field

WithDockerComposeCmd sets the DockerComposeCmd field.

func WithEvent

func WithEvent(event interface{}) zap.Field

WithEvent sets the Event field.

func WithIDToken

func WithIDToken(idToken string) zap.Field

WithIDToken sets the id token field.

func WithJSONQuery

func WithJSONQuery(jsonQuery string) zap.Field

WithJSONQuery sets the JSON Query field.

func WithJSONResolution

func WithJSONResolution(jsonResolution string) zap.Field

WithJSONResolution sets the JSONResolution field.

func WithJSONSchema added in v1.3.0

func WithJSONSchema(value string) zap.Field

WithJSONSchema sets the jsonSchema field.

func WithJSONSchemaID added in v1.3.0

func WithJSONSchemaID(value string) zap.Field

WithJSONSchemaID sets the jsonSchemaID field.

func WithPresDefID

func WithPresDefID(presDefID string) zap.Field

WithPresDefID sets the PresDefID (presentation definition ID) field.

func WithProfileID

func WithProfileID(profileID string) zap.Field

WithProfileID sets the ProfileID field.

func WithProfileVersion

func WithProfileVersion(profileVersion string) zap.Field

WithProfileVersion sets the ProfileVersion field.

func WithResponses

func WithResponses(responses int) zap.Field

WithResponses sets the Responses field.

func WithSleep

func WithSleep(sleep time.Duration) zap.Field

WithSleep sets the sleep field.

func WithTotalRequests

func WithTotalRequests(totalRequests int) zap.Field

WithTotalRequests sets the TotalRequests field.

func WithTransactionID added in v1.1.0

func WithTransactionID(transactionID string) zap.Field

WithTransactionID sets the id token field.

func WithUserLogLevel

func WithUserLogLevel(logLevel string) zap.Field

WithUserLogLevel sets the UserLogLevel field.

func WithVP

func WithVP(vp string) zap.Field

WithVP sets the VP (verifiable presentation) field.

func WithVPToken

func WithVPToken(vpToken string) zap.Field

WithVPToken sets the vp token field.

func WithWorkers

func WithWorkers(workers int) zap.Field

WithWorkers sets the Workers field.

Types

type ObjectMarshaller

type ObjectMarshaller struct {
	// contains filtered or unexported fields
}

ObjectMarshaller uses reflection to marshal an object's fields.

func NewObjectMarshaller

func NewObjectMarshaller(key string, obj interface{}) *ObjectMarshaller

NewObjectMarshaller returns a new ObjectMarshaller.

func (*ObjectMarshaller) MarshalLogObject

func (m *ObjectMarshaller) MarshalLogObject(e zapcore.ObjectEncoder) error

MarshalLogObject marshals the object's fields.

Jump to

Keyboard shortcuts

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