loggingtest

package
v0.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscardLoggerFactory

func NewDiscardLoggerFactory() logging.LoggerFactory

NewDiscardLoggerFactory returns a factory that creates DiscardLogger.

Types

type DiscardLoggerFactory

type DiscardLoggerFactory struct{}

DiscardLoggerFactory creates logr.Logger that discard everything.

func (*DiscardLoggerFactory) NewGenericLogger

func (d *DiscardLoggerFactory) NewGenericLogger(_ string) logr.Logger

func (*DiscardLoggerFactory) NewPipelineLogger

func (d *DiscardLoggerFactory) NewPipelineLogger(name string) *logging.PipelineLogger

func (*DiscardLoggerFactory) NewRepositoryLogger

func (d *DiscardLoggerFactory) NewRepositoryLogger(_ *domain.GitRepository) logr.Logger

func (*DiscardLoggerFactory) SetLogLevel

func (d *DiscardLoggerFactory) SetLogLevel(_ int)

type TestingLoggerFactory

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

TestingLoggerFactory returns a logging.LoggerFactory used for testing.

func NewTestingLogger

func NewTestingLogger(t *testing.T) *TestingLoggerFactory

NewTestingLogger returns a new instance with given testing.T.

func (*TestingLoggerFactory) NewGenericLogger

func (f *TestingLoggerFactory) NewGenericLogger(name string) logr.Logger

func (*TestingLoggerFactory) NewPipelineLogger

func (f *TestingLoggerFactory) NewPipelineLogger(name string) *logging.PipelineLogger

func (*TestingLoggerFactory) NewRepositoryLogger

func (f *TestingLoggerFactory) NewRepositoryLogger(repository *domain.GitRepository) logr.Logger

func (*TestingLoggerFactory) SetLogLevel

func (f *TestingLoggerFactory) SetLogLevel(_ int)

Jump to

Keyboard shortcuts

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