logging

package
v0.0.0-...-a77fb91 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSLogger

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

AWSLogger is an implementation of the OCM logger interface that uses the logging framework of the project. Don't create instances of this type directly; use the NewAWSLogger function instead.

func (*AWSLogger) Log

func (l *AWSLogger) Log(args ...interface{})

type AWSLoggerBuilder

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

AWSLoggerBuilder contains the information and logic needed to create an AWS logger that uses the logging framework of the project. Don't create instances of this type directly; use the NewAWSLogger function instead.

func NewAWSLogger

func NewAWSLogger() *AWSLoggerBuilder

NewAWSLogger creates new builder that can then be used to configure and build an OCM logger that uses the logging framework of the project.

func (*AWSLoggerBuilder) Build

func (b *AWSLoggerBuilder) Build() (result *AWSLogger, err error)

Build uses the information stored in the builder to create a new OCM logger that uses the logging framework of the project.

func (*AWSLoggerBuilder) Logger

func (b *AWSLoggerBuilder) Logger(value *logrus.Logger) *AWSLoggerBuilder

Logger sets the underlying logger that will be used by the OCM logger to send the messages to the log.

type LoggerBuilder

type LoggerBuilder struct {
}

LoggerBuilder contains the information and logic needed to create the default loggers used by the project. Don't create instances of this type directly; use the NewLogger function instead.

func NewLogger

func NewLogger() *LoggerBuilder

NewLogger creates new builder that can then be used to configure and build an OCM logger that uses the logging framework of the project.

func (*LoggerBuilder) Build

func (b *LoggerBuilder) Build() (result *logrus.Logger, err error)

Build uses the information stored in the builder to create a new logger.

type RoundTripper

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

RoundTripper is a round tripper that dumps the details of the requests and the responses to the log. Don't create instances of this type directly; use the NewRoundTripper function instead.

func (*RoundTripper) RoundTrip

func (d *RoundTripper) RoundTrip(request *http.Request) (response *http.Response, err error)

RoundTrip is he implementation of the http.RoundTripper interface.

type RoundTripperBuilder

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

RoundTripperBuilder contains the information an logic needed to build a new round tripper that sends to the log the details of the requests sent and the responses received. Don't create instances of this type directly; use the NewRoundTripper function instead.

func NewRoundTripper

func NewRoundTripper() *RoundTripperBuilder

NewRoundTripper creates a builder that can then be used to create a round tripper that sends to the log the details of the requests sent and the responses received.

func (*RoundTripperBuilder) Build

func (b *RoundTripperBuilder) Build() (result *RoundTripper, err error)

Build uses the information stored in the builder to create a new round tripper that sends to the log the details of the requests sent and the responses received.

func (*RoundTripperBuilder) Logger

Logger sets the logger that the round tripper will use to send the details of request and responses to the log. This is mandatory.

func (*RoundTripperBuilder) Next

Next sets the next round tripper. The details of the request will be sent to the log before calling it, and the details of the response will be sent to the log after calling it.

func (*RoundTripperBuilder) Redact

Redact specifies a field whose value should be removed from the messages sent to the log.

Jump to

Keyboard shortcuts

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