Esempio n. 1
0
func (c *Conveyor) newLogger(opts builder.BuildOptions) (builder.Logger, error) {
	if c.LogFactory == nil {
		return builder.StdoutLogger(opts)
	}

	return c.LogFactory(opts)
}
Esempio n. 2
0
func (w *Worker) newLogger(opts builder.BuildOptions) (builder.Logger, error) {
	if w.LogFactory == nil {
		return builder.StdoutLogger(opts)
	}

	return w.LogFactory(opts)
}