log

package
v0.0.0-...-b2e0f1d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskManager

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

func NewDiskManager

func NewDiskManager(dir string, keepLogs bool) *DiskManager

func (*DiskManager) AddTask

func (lm *DiskManager) AddTask(slug string) (TaskLogger, error)

func (*DiskManager) Close

func (lm *DiskManager) Close() error

func (*DiskManager) LogFiles

func (lm *DiskManager) LogFiles() []string

type FileTaskLogger

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

func (*FileTaskLogger) Close

func (tl *FileTaskLogger) Close() error

func (*FileTaskLogger) Log

func (tl *FileTaskLogger) Log(s string)

func (*FileTaskLogger) Logf

func (tl *FileTaskLogger) Logf(format string, a ...interface{})

func (*FileTaskLogger) MarkErrored

func (tl *FileTaskLogger) MarkErrored()

func (*FileTaskLogger) Path

func (tl *FileTaskLogger) Path() string

func (*FileTaskLogger) PrefixWriter

func (tl *FileTaskLogger) PrefixWriter(prefix string) io.Writer

type LogManager

type LogManager interface {
	AddTask(string) (TaskLogger, error)
	Close() error
	LogFiles() []string
}

type NoopTaskLogger

type NoopTaskLogger struct{}

func (*NoopTaskLogger) Close

func (tl *NoopTaskLogger) Close() error

func (*NoopTaskLogger) Log

func (tl *NoopTaskLogger) Log(s string)

func (*NoopTaskLogger) Logf

func (tl *NoopTaskLogger) Logf(format string, a ...interface{})

func (*NoopTaskLogger) MarkErrored

func (tl *NoopTaskLogger) MarkErrored()

func (*NoopTaskLogger) Path

func (tl *NoopTaskLogger) Path() string

func (*NoopTaskLogger) PrefixWriter

func (tl *NoopTaskLogger) PrefixWriter(prefix string) io.Writer

type TaskLogger

type TaskLogger interface {
	Close() error
	Log(string)
	Logf(string, ...interface{})
	MarkErrored()
	Path() string
	PrefixWriter(prefix string) io.Writer
}

Jump to

Keyboard shortcuts

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