logging

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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