Documentation ¶
Index ¶
- func NewDiscardLoggerFactory() logging.LoggerFactory
- type DiscardLoggerFactory
- type TestingLoggerFactory
- func (f *TestingLoggerFactory) NewGenericLogger(name string) logr.Logger
- func (f *TestingLoggerFactory) NewPipelineLogger(name string) *logging.PipelineLogger
- func (f *TestingLoggerFactory) NewRepositoryLogger(repository *domain.GitRepository) logr.Logger
- func (f *TestingLoggerFactory) SetLogLevel(_ int)
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)
Click to show internal directories.
Click to hide internal directories.