logger

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.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 LogReader added in v0.0.12

type LogReader interface {
	GetLogEntries(from, limit int) []*db.TaskLog
	GetLogEntryCount() int
}

func NewLogDBReader added in v0.0.12

func NewLogDBReader(database *db.Database, testRunID, taskID int) LogReader

type LogScope

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

func NewLogger

func NewLogger(options *ScopeOptions) *LogScope

func (*LogScope) Flush added in v0.0.12

func (ls *LogScope) Flush()

func (*LogScope) GetLogEntries

func (ls *LogScope) GetLogEntries(from, limit int) []*db.TaskLog

func (*LogScope) GetLogEntryCount added in v0.0.12

func (ls *LogScope) GetLogEntryCount() int

func (*LogScope) GetLogger

func (ls *LogScope) GetLogger() *logrus.Logger

type ScopeOptions

type ScopeOptions struct {
	Parent     logrus.FieldLogger
	BufferSize uint64
	FlushDelay time.Duration
	Database   *db.Database
	TestRunID  uint64
	TaskID     uint64
}

Jump to

Keyboard shortcuts

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