logger

package
v0.0.0-...-e9d226e Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogMap = LogEntryMap{}

Functions

This section is empty.

Types

type AutoLogger

type AutoLogger struct {
	ID      string
	Error   bool
	Newline bool
}

func (AutoLogger) Write

func (a AutoLogger) Write(p []byte) (n int, err error)

type LogEntry

type LogEntry struct {
	LastUpdate time.Time
	LastLog    []string
	IsDone     bool
}

type LogEntryMap

type LogEntryMap map[string]LogEntry

func (LogEntryMap) Add

func (l LogEntryMap) Add(id string, data string, newline bool)

func (LogEntryMap) Get

func (l LogEntryMap) Get(id string) LogEntry

func (LogEntryMap) MarkDone

func (l LogEntryMap) MarkDone(id string)

func (LogEntryMap) Set

func (l LogEntryMap) Set(id string, entry LogEntry)

Jump to

Keyboard shortcuts

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