Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LevelWarn is the warning logging level. LevelWarn = 2 // LevelInfo is the info logging level. LevelInfo = 0 // LevelDebug is the debug logging level. LevelDebug = 1 // LevelSuccess is the success logging level. LevelSuccess = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) *PipelineLogger
func (*DiscardLoggerFactory) NewRepositoryLogger ¶
func (d *DiscardLoggerFactory) NewRepositoryLogger(_ *domain.GitRepository) logr.Logger
func (*DiscardLoggerFactory) SetLogLevel ¶
func (d *DiscardLoggerFactory) SetLogLevel(_ LogLevel)
type LogLevel ¶
type LogLevel int
LogLevel represents the verbosity of application events.
func ParseLevelOrDefault ¶
ParseLevelOrDefault returns the parsed LogLevel from a given string. If it cannot be parsed, it returns the given default.
type LoggerFactory ¶
type LoggerFactory interface { NewGenericLogger(name string) logr.Logger NewRepositoryLogger(repository *domain.GitRepository) logr.Logger NewPipelineLogger(name string) *PipelineLogger SetLogLevel(level LogLevel) }
func NewDiscardLoggerFactory ¶
func NewDiscardLoggerFactory() LoggerFactory
NewDiscardLoggerFactory returns a factory that creates DiscardLogger.
type PipelineLogger ¶
PipelineLogger is the implementation for the pipeline lib.
func (PipelineLogger) Accept ¶
func (p PipelineLogger) Accept(step pipeline.Step)
Accept prints the scope to debug level.
Click to show internal directories.
Click to hide internal directories.