logcollector

package
v0.0.0-...-a952043 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

func NewCollector

func NewCollector(output io.Writer) *Collector

func (*Collector) CtxLog

func (c *Collector) CtxLog(ctx context.Context, logLevel LogLevel, format string, args ...interface{})

func (*Collector) PersistLogs

func (c *Collector) PersistLogs(ctx context.Context, logContent string)

func (*Collector) Start

func (c *Collector) Start()

type LogCollector

type LogCollector interface {
	CtxLog(ctx context.Context, logLevel LogLevel, fmt string, args ...interface{})
}

type LogLevel

type LogLevel int
const (
	LogLevelDebug LogLevel = 0
	LogLevelInfo  LogLevel = 1
	LogLevelError LogLevel = 2
)

type LogTask

type LogTask struct {
	LogContent string
	// contains filtered or unexported fields
}

func (*LogTask) Execute

func (l *LogTask) Execute(ctx context.Context) error

Jump to

Keyboard shortcuts

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