loggers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Open(string) error
	Close() error
	SetTotal(uint)
	LogSkip(string, ...interface{})
	LogInfo(string, ...interface{})
	LogSent(string, ...interface{})
	LogWarn(string, ...interface{})
	LogFail(string, ...interface{})
	LogTest(string, ...interface{})
}

Logger knows how to handle all the emailing events.

type Multi

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

type Spinner

type Spinner struct {
	Verbose
}

Spinner displays current delivery status.

func NewSpinner

func NewSpinner() *Spinner

func (*Spinner) Close

func (sp *Spinner) Close() error

func (*Spinner) LogFail

func (sp *Spinner) LogFail(s string, args ...interface{})

func (*Spinner) LogInfo

func (sp *Spinner) LogInfo(s string, args ...interface{})

func (*Spinner) LogSent

func (sp *Spinner) LogSent(s string, args ...interface{})

func (*Spinner) LogSkip

func (sp *Spinner) LogSkip(s string, args ...interface{})

func (*Spinner) LogTest

func (sp *Spinner) LogTest(s string, args ...interface{})

func (*Spinner) LogWarn

func (sp *Spinner) LogWarn(s string, args ...interface{})

func (*Spinner) Open

func (sp *Spinner) Open(s string) error

type Verbose

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

func (*Verbose) Close

func (v *Verbose) Close() error

func (*Verbose) LogFail

func (v *Verbose) LogFail(s string, args ...interface{})

func (*Verbose) LogInfo

func (v *Verbose) LogInfo(s string, args ...interface{})

func (*Verbose) LogSent

func (v *Verbose) LogSent(s string, args ...interface{})

func (*Verbose) LogSkip

func (v *Verbose) LogSkip(s string, args ...interface{})

func (*Verbose) LogTest

func (v *Verbose) LogTest(s string, args ...interface{})

func (*Verbose) LogWarn

func (v *Verbose) LogWarn(s string, args ...interface{})

func (*Verbose) Open

func (v *Verbose) Open(s string) error

func (*Verbose) PeriodicSummary

func (v *Verbose) PeriodicSummary()

func (*Verbose) SetTotal

func (v *Verbose) SetTotal(jobs uint)

SetTotal adjusts the loggers total job count.

func (*Verbose) Summary

func (v *Verbose) Summary() string

Jump to

Keyboard shortcuts

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