log

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Failure

func Failure(command, profile, message string, start time.Time)

Failure records a failed operation

func Info

func Info(command, profile, message string)

Info logs an informational entry

func ReadLogs

func ReadLogs(date string) error

ReadLogs prints a formatted view of logs for the given date. If date is empty, it defaults to today's date.

func Success

func Success(command, profile, message string, start time.Time)

Success records a success entry

Types

type Entry

type Entry struct {
	Timestamp string `json:"timestamp"`
	Command   string `json:"command"`
	Profile   string `json:"profile"`
	Status    string `json:"status"`
	Message   string `json:"message"`
	Duration  string `json:"duration"`
}

Jump to

Keyboard shortcuts

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