log

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 Imported by: 6 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package log provides a way to log messages to the screen with the appropriate coloring and formatting for readability

Index

Constants

This section is empty.

Variables

View Source
var (
	ReasonSkip            = *color.New(color.FgYellow)
	ReasonError           = *color.New(color.FgRed)
	ReasonRemoveTriggered = *color.New(color.FgGreen)
	ReasonWaitPending     = *color.New(color.FgBlue)
	ReasonWaitDependency  = *color.New(color.FgCyan)
	ReasonSuccess         = *color.New(color.FgGreen)
	ReasonHold            = *color.New(color.FgMagenta)
)
View Source
var (
	ColorRegion             = *color.New(color.Bold)
	ColorResourceType       = *color.New()
	ColorResourceID         = *color.New(color.Bold)
	ColorResourceProperties = *color.New(color.Italic)
)

Functions

func Sorted

func Sorted(m map[string]string) string

Sorted -- Format the resource properties in sorted order ready for printing. This ensures that multiple runs of aws-nuke produce stable output so that they can be compared with each other.

Types

type CustomFormatter added in v0.24.0

type CustomFormatter struct {
	FallbackFormatter logrus.Formatter
}

func (*CustomFormatter) Format added in v0.24.0

func (f *CustomFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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