# logger ```go import "katenary.io/internal/logger" ``` Package logger provides simple logging functions with icons and colors. ## Constants ```go const ( ColorGreen = "\033[38;5;34m" ColorRed = "\033[38;5;196m" ColorOrange = "\033[38;5;214m" ColorWarning = "\033[38;5;214m" ) ``` ## func Failure ```go func Failure(msg ...any) ``` Failure prints a failure message. ## func Failuref ```go func Failuref(format string, msg ...any) ``` Failuref prints a formatted failure message. ## func Fatal ```go func Fatal(msg ...any) ``` Fatal prints a fatal error message and exits with code 1. ## func Fatalf ```go func Fatalf(format string, msg ...any) ``` Fatalf prints a fatal error message with formatting and exits with code 1. ## func FlushWarnings ```go func FlushWarnings() ``` FlushWarnings prints all collected warnings at the end of the conversion. ## func Info ```go func Info(msg ...any) ``` Info prints an informational message. ## func Infof ```go func Infof(format string, msg ...any) ``` Infof prints a formatted informational message. ## func Log ```go func Log(icon Icon, msg ...any) ``` Log prints a message with a custom icon. ## func Logf ```go func Logf(icon Icon, format string, msg ...any) ``` Logf prints a formatted message with a custom icon. ## func Print ```go func Print(msg ...any) ``` Print prints a message without icon. ## func Printf ```go func Printf(format string, msg ...any) ``` Printf prints a formatted message without icon. ## func Success ```go func Success(msg ...any) ``` Success prints a success message. ## func Successf ```go func Successf(format string, msg ...any) ``` Successf prints a formatted success message. ## func Warn ```go func Warn(msg ...any) ``` Warn prints a warning message. ## func Warnf ```go func Warnf(format string, msg ...any) ``` Warnf prints a formatted warning message. ## type Icon Icon is a unicode icon ```go type Icon string ``` Icons used in katenary. ```go const ( IconSuccess Icon = "✅" IconFailure Icon = "❌" IconWarning Icon = "❕" IconNote Icon = "📝" IconWorld Icon = "🌐" IconPlug Icon = "🔌" IconPackage Icon = "📦" IconCabinet Icon = "🗄️" IconInfo Icon = "🔵" IconSecret Icon = "🔒" IconConfig Icon = "🔧" IconDependency Icon = "🔗" ) ``` Generated by [gomarkdoc]()