logger

package
v0.17.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MPL-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

View Source
const PodLogBucketName = "pod-logs"
View Source
const SessionLogBucketName = "gitops-run-logs"
View Source
const SessionLogSource = "gitops-run-client"

Variables

This section is empty.

Functions

func CreateBucket added in v0.16.0

func CreateBucket(minioClient *minio.Client, bucketName string) error

Types

type CliLogger added in v0.11.0

type CliLogger struct {
	logr.Logger
}

func (*CliLogger) Actionf added in v0.11.0

func (l *CliLogger) Actionf(format string, a ...interface{})

func (*CliLogger) Failuref added in v0.11.0

func (l *CliLogger) Failuref(format string, a ...interface{})

func (*CliLogger) Generatef added in v0.11.0

func (l *CliLogger) Generatef(format string, a ...interface{})

func (*CliLogger) L added in v0.11.0

func (l *CliLogger) L() logr.Logger

func (*CliLogger) Println added in v0.11.0

func (l *CliLogger) Println(format string, a ...interface{})

func (*CliLogger) Successf added in v0.11.0

func (l *CliLogger) Successf(format string, a ...interface{})

func (*CliLogger) Waitingf added in v0.11.0

func (l *CliLogger) Waitingf(format string, a ...interface{})

func (*CliLogger) Warningf added in v0.11.0

func (l *CliLogger) Warningf(format string, a ...interface{})

type Logger

type Logger interface {
	Println(format string, a ...interface{})
	Actionf(format string, a ...interface{})
	Failuref(format string, a ...interface{})
	Generatef(format string, a ...interface{})
	Successf(format string, a ...interface{})
	Waitingf(format string, a ...interface{})
	Warningf(format string, a ...interface{})
	L() logr.Logger
}

func From added in v0.10.1

func From(logger logr.Logger) Logger

From wraps a logr instance with the extra emoji generating helpers

func NewCLILogger added in v0.2.3

func NewCLILogger(writer io.Writer) Logger

NewCLILogger returns a wrapped logr that logs to the specified writer Note: unless you're doing CLI work, you should use core/logger.New instead

func NewS3LogWriter added in v0.11.0

func NewS3LogWriter(minioClient *minio.Client, id string, log0 Logger) (Logger, error)

type S3LogWriter added in v0.11.0

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

func (*S3LogWriter) Actionf added in v0.11.0

func (l *S3LogWriter) Actionf(format string, a ...interface{})

func (*S3LogWriter) Failuref added in v0.11.0

func (l *S3LogWriter) Failuref(format string, a ...interface{})

func (*S3LogWriter) Generatef added in v0.11.0

func (l *S3LogWriter) Generatef(format string, a ...interface{})

func (*S3LogWriter) L added in v0.11.0

func (l *S3LogWriter) L() logr.Logger

func (*S3LogWriter) Println added in v0.11.0

func (l *S3LogWriter) Println(format string, a ...interface{})

func (*S3LogWriter) Successf added in v0.11.0

func (l *S3LogWriter) Successf(format string, a ...interface{})

func (*S3LogWriter) Waitingf added in v0.11.0

func (l *S3LogWriter) Waitingf(format string, a ...interface{})

func (*S3LogWriter) Warningf added in v0.11.0

func (l *S3LogWriter) Warningf(format string, a ...interface{})

Jump to

Keyboard shortcuts

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