Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debug(tag string, f string, args ...interface{})
- func (l *Logger) Info(tag string, f string, args ...interface{})
- func (l *Logger) InfoWriter(tag string) *Writer
- func (l *Logger) Out(f string, args ...interface{})
- func (l *Logger) OutRaw(s string)
- func (l *Logger) Output(tag string, f string, args ...interface{})
- func (l *Logger) OutputWriter(tag string) *Writer
- func (l *Logger) PrintPlotResults(tag string, pr wfapi.PlotResults)
- func (l *Logger) PrintRunRecord(tag string, rr wfapi.RunRecord, memoized bool)
- func (l *Logger) RawWriter() *Writer
- func (l Logger) WithContext(ctx context.Context) context.Context
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func Ctx ¶
Ctx returns the logger associated with the context. If no logger is associated with the context then the default logger will be returned
func DefaultLogger ¶
func DefaultLogger() Logger
func (*Logger) InfoWriter ¶
func (*Logger) OutputWriter ¶
func (*Logger) PrintPlotResults ¶
func (l *Logger) PrintPlotResults(tag string, pr wfapi.PlotResults)
func (*Logger) PrintRunRecord ¶
func (Logger) WithContext ¶
WithContext returns a copy of ctx with the logger associated. If an instance of logger is already in the context, the context is not updated. This function is following the convention used by zerolog for passing loggers via context.
Click to show internal directories.
Click to hide internal directories.