Documentation ¶
Index ¶
- Variables
- func GetFileStream(path string) (io.Writer, errors.Error)
- func GetPipelineLoggerPath(config *core.LoggerConfig, p *models.Pipeline) string
- func GetTaskLoggerPath(config *core.LoggerConfig, t *models.Task) string
- func NewDefaultLogger(log *logrus.Logger) (core.Logger, errors.Error)
- type DefaultLogger
- func (l *DefaultLogger) Debug(format string, a ...interface{})
- func (l *DefaultLogger) Error(err error, format string, a ...interface{})
- func (l *DefaultLogger) GetConfig() *core.LoggerConfig
- func (l *DefaultLogger) Info(format string, a ...interface{})
- func (l *DefaultLogger) IsLevelEnabled(level core.LogLevel) bool
- func (l *DefaultLogger) Log(level core.LogLevel, format string, a ...interface{})
- func (l *DefaultLogger) Nested(newPrefix string) core.Logger
- func (l *DefaultLogger) Printf(format string, a ...interface{})
- func (l *DefaultLogger) SetStream(config *core.LoggerStreamConfig)
- func (l *DefaultLogger) Warn(err error, format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Global core.Logger
Functions ¶
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
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{})
Click to show internal directories.
Click to hide internal directories.