logger

package
v0.14.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global core.Logger

Functions

func GetFileStream added in v0.13.0

func GetFileStream(path string) (io.Writer, errors.Error)

func GetPipelineLoggerPath added in v0.13.0

func GetPipelineLoggerPath(config *core.LoggerConfig, p *models.Pipeline) string

func GetTaskLoggerPath added in v0.13.0

func GetTaskLoggerPath(config *core.LoggerConfig, t *models.Task) string

func NewDefaultLogger added in v0.12.0

func NewDefaultLogger(log *logrus.Logger) (core.Logger, errors.Error)

Types

type DefaultLogger added in v0.12.0

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

func (*DefaultLogger) Debug added in v0.12.0

func (l *DefaultLogger) Debug(format string, a ...interface{})

func (*DefaultLogger) Error added in v0.12.0

func (l *DefaultLogger) Error(err error, format string, a ...interface{})

func (*DefaultLogger) GetConfig added in v0.13.0

func (l *DefaultLogger) GetConfig() *core.LoggerConfig

func (*DefaultLogger) Info added in v0.12.0

func (l *DefaultLogger) Info(format string, a ...interface{})

func (*DefaultLogger) IsLevelEnabled added in v0.12.0

func (l *DefaultLogger) IsLevelEnabled(level core.LogLevel) bool

func (*DefaultLogger) Log added in v0.12.0

func (l *DefaultLogger) Log(level core.LogLevel, format string, a ...interface{})

func (*DefaultLogger) Nested added in v0.12.0

func (l *DefaultLogger) Nested(newPrefix string) core.Logger

func (*DefaultLogger) Printf added in v0.12.0

func (l *DefaultLogger) Printf(format string, a ...interface{})

func (*DefaultLogger) SetStream added in v0.13.0

func (l *DefaultLogger) SetStream(config *core.LoggerStreamConfig)

func (*DefaultLogger) Warn added in v0.12.0

func (l *DefaultLogger) Warn(err error, format string, a ...interface{})

Jump to

Keyboard shortcuts

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