logging

package
v2.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(log *logrus.Entry, level logrus.Level, reqType RequestType, req api.PayloadRequest, params ...string)

LogRequest creates a logging message with the given parameters

  • log *logrus.Entry
  • level the message must have
  • reqType is the request type
  • Optional. params for self-created string messages to be appended to the created log message. The elements do not need a space at the beginning of the message.

The message looks like one of the following depending on the given information

"*orchestrator.Catalog created with ID 'Cat1234'."

or

"*orchestrator.Certificate created with ID 'Cert1234' for Cloud Service '00000000-0000-0000-0000-000000000000'."

or

"*orchestrator.TargetOfEvaluation created with ID 'ToE1234' for Cloud Service '00000000-0000-0000-0000-000000000000' and Catalog 'EUCS'."

Types

type RequestType

type RequestType int

RequestType specifies the type of request

const (
	Assess RequestType = iota
	Add
	Create
	Register
	Remove
	Store
	Send
	Update
)

func (RequestType) String

func (r RequestType) String() string

String returns the RequestType as string.

Jump to

Keyboard shortcuts

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