logformatter

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 2 Imported by: 0

README

logformatter

logformatter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(logType LogType, message string)

Log prints a formatted log message with color and glyph based on the log type.

Types

type LogType

type LogType int

LogType represents the type of log message.

const (
	// Warning log type
	Warning LogType = iota
	// Info log type
	Info
	// Success log type
	Success
	// Error log type
	Error
	// Warning, no color
	WarningNoColor
	// Info, no color
	InfoNoColor
	// Success, no color
	SuccessNoColor
	// Error, no color
	ErrorNoColor
)

Jump to

Keyboard shortcuts

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