Versions in this module Expand all Collapse all v1 v1.3.9 Sep 1, 2024 v1.3.8 Sep 1, 2024 Changes in this version + const AnkorLogTimestamps + var Colors = []string + var Discard = &DiscardLogger + func AcquireGlobalSilence() (string, error) + func OverrideRuntimeErrorHandler(discard bool) + func PrintTable(s Logger, header []string, values [][]string) + func PrintTableWithOptions(s Logger, header []string, values [][]string, ...) + func ReleaseGlobalSilence(id string) + func StartFileLogging() + func WithNopCloser(writer io.Writer) io.WriteCloser + type DiscardLogger struct + func (d *DiscardLogger) AddSink(log Logger) + func (d *DiscardLogger) Children() []Logger + func (d *DiscardLogger) Debug(args ...interface{}) + func (d *DiscardLogger) Debugf(format string, args ...interface{}) + func (d *DiscardLogger) Done(args ...interface{}) + func (d *DiscardLogger) Donef(format string, args ...interface{}) + func (d *DiscardLogger) Error(args ...interface{}) + func (d *DiscardLogger) ErrorStreamOnly() Logger + func (d *DiscardLogger) Errorf(format string, args ...interface{}) + func (d *DiscardLogger) Fail(args ...interface{}) + func (d *DiscardLogger) Failf(format string, args ...interface{}) + func (d *DiscardLogger) Fatal(args ...interface{}) + func (d *DiscardLogger) Fatalf(format string, args ...interface{}) + func (d *DiscardLogger) GetLevel() logrus.Level + func (d *DiscardLogger) Info(args ...interface{}) + func (d *DiscardLogger) Infof(format string, args ...interface{}) + func (d *DiscardLogger) Print(level logrus.Level, args ...interface{}) + func (d *DiscardLogger) Printf(level logrus.Level, format string, args ...interface{}) + func (d *DiscardLogger) Question(params *survey.QuestionOptions) (string, error) + func (d *DiscardLogger) SetLevel(level logrus.Level) + func (d *DiscardLogger) StartWait(message string) + func (d *DiscardLogger) StopWait() + func (d *DiscardLogger) Warn(args ...interface{}) + func (d *DiscardLogger) Warnf(format string, args ...interface{}) + func (d *DiscardLogger) WithLevel(level logrus.Level) Logger + func (d *DiscardLogger) WithPrefix(prefix string) Logger + func (d *DiscardLogger) WithPrefixColor(prefix, color string) Logger + func (d *DiscardLogger) WithSink(log Logger) Logger + func (d *DiscardLogger) Write(message []byte) (int, error) + func (d *DiscardLogger) WriteString(level logrus.Level, message string) + func (d *DiscardLogger) Writer(level logrus.Level, raw bool) io.WriteCloser + type Format int + const JSONFormat + const RawFormat + const TextFormat + const TimeFormat + type Line struct + Level logrus.Level + Message string + Time time.Time + type Logger interface + AddSink func(sink Logger) + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Done func(args ...interface{}) + Donef func(format string, args ...interface{}) + Error func(args ...interface{}) + ErrorStreamOnly func() Logger + Errorf func(format string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + GetLevel func() logrus.Level + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Print func(level logrus.Level, args ...interface{}) + Printf func(level logrus.Level, format string, args ...interface{}) + Question func(params *survey.QuestionOptions) (string, error) + SetLevel func(level logrus.Level) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{}) + WithLevel func(level logrus.Level) Logger + WithPrefix func(prefix string) Logger + WithPrefixColor func(prefix, color string) Logger + WithSink func(sink Logger) Logger + WriteString func(level logrus.Level, message string) + Writer func(level logrus.Level, raw bool) io.WriteCloser + func GetBaseInstance() Logger + func GetFileLogger(filename string) Logger + func GetInstance() Logger + func NewStdoutLogger(stdout, stderr io.Writer, level logrus.Level) Logger + func NewStreamLogger(stdout, stderr io.Writer, level logrus.Level) Logger + func NewStreamLoggerWithFormat(stdout, stderr io.Writer, level logrus.Level, format Format) Logger + type NopCloser struct + func (NopCloser) Close() error + type Prefix struct + Color string + Prefix string + type StreamLogger struct + func (s *StreamLogger) AddSink(log Logger) + func (s *StreamLogger) Children() []Logger + func (s *StreamLogger) Debug(args ...interface{}) + func (s *StreamLogger) Debugf(format string, args ...interface{}) + func (s *StreamLogger) Done(args ...interface{}) + func (s *StreamLogger) Donef(format string, args ...interface{}) + func (s *StreamLogger) Error(args ...interface{}) + func (s *StreamLogger) ErrorStreamOnly() Logger + func (s *StreamLogger) Errorf(format string, args ...interface{}) + func (s *StreamLogger) Fatal(args ...interface{}) + func (s *StreamLogger) Fatalf(format string, args ...interface{}) + func (s *StreamLogger) GetFormat() Format + func (s *StreamLogger) GetLevel() logrus.Level + func (s *StreamLogger) Info(args ...interface{}) + func (s *StreamLogger) Infof(format string, args ...interface{}) + func (s *StreamLogger) Print(level logrus.Level, args ...interface{}) + func (s *StreamLogger) Printf(level logrus.Level, format string, args ...interface{}) + func (s *StreamLogger) Question(params *survey.QuestionOptions) (string, error) + func (s *StreamLogger) SetLevel(level logrus.Level) + func (s *StreamLogger) Warn(args ...interface{}) + func (s *StreamLogger) Warnf(format string, args ...interface{}) + func (s *StreamLogger) WithLevel(level logrus.Level) Logger + func (s *StreamLogger) WithPrefix(prefix string) Logger + func (s *StreamLogger) WithPrefixColor(prefix, color string) Logger + func (s *StreamLogger) WithSink(log Logger) Logger + func (s *StreamLogger) WriteString(level logrus.Level, message string) + func (s *StreamLogger) Writer(level logrus.Level, raw bool) io.WriteCloser + type SurveyError struct + func (s SurveyError) Error() string