Files
katenary/doc/docs/packages/internal/logger.md
Patrice Ferlet f3c1bf39fe
All checks were successful
Go-Tests / tests (push) Successful in 2m13s
Go-Tests / sonar (push) Successful in 48s
chore(doc): Document code
2025-09-15 13:36:22 +02:00

1.8 KiB

logger

import "katenary.io/internal/logger"

Package logger provides simple logging functions with icons and colors.

func Failure

func Failure(msg ...any)

Failure prints a failure message.

func Info

func Info(msg ...any)

Info prints an informational message.

func Log

func Log(icon Icon, msg ...any)

Log prints a message with a custom icon.

func Success

func Success(msg ...any)

Success prints a success message.

func Warn

func Warn(msg ...any)

Warn prints a warning message.

type Icon

Icon is a unicode icon

type Icon string

Icons used in katenary.

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