logger

package module
v0.0.0-...-07818df Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogInstance

func LogInstance(header *multipart.FileHeader, fileName string, timeSince time.Duration, opts *app.Opts) error

LogInstance logs an entry from the current instance.

Types

type Entries

type Entries []Entry

Entries represents a slice of multiple entries for marshaling into the json log file.

type Entry

type Entry struct {
	Index       int      `json:"index"`
	TimeOfEntry string   `json:"timeOfEntry"`
	FileName    string   `json:"fileName"`
	FileSize    string   `json:"fileSize"`
	OutputSize  string   `json:"outputSize"`
	ProcessTime string   `json:"processTime"`
	Opts        app.Opts `json:"opts"`
}

Entry represents a single log entry.

Jump to

Keyboard shortcuts

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