logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IconCopy     = "📋"
	IconSkip     = "⏭️"
	IconFolder   = "📁"
	IconExplode  = "💥"
	IconWarning  = "⚠️"
	IconRename   = "🏷️"
	IconComplete = "✅"
	IconReplace  = "🔀"
	IconRewrite  = "🔀"
	IconClean    = "🧹"
	IconError    = "❌"
)

Icons for different types of log messages

Variables

This section is empty.

Functions

func Log

func Log(level LogLevel, icon, message string, args ...interface{})

log message with icon and level

func LogComplete

func LogComplete(message string)

func LogDryRun

func LogDryRun(level LogLevel, icon, message string, args ...interface{})

same as Log but with [DRY RUN] prefix

func LogError

func LogError(message string, args ...interface{})

func LogWarning

func LogWarning(message string, args ...interface{})

Types

type LogLevel

type LogLevel int

log level == indentation

const (
	// 0 space
	Base LogLevel = iota
	// 2 space
	Action
	// 4 space
	Detail
)

Jump to

Keyboard shortcuts

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