A simple, colorful logging library for Go — logs to files and console.
- 📁 File logging with rotation
- 🖥️ Console logging with colors
- 📦 Log levels:
INFO,WARN,ERROR,FATAL - 🧹 Auto cleanup of old logs
- 🧩 Module-based console output
import "github.com/Nutdat/logger"logger.Info("App started")
logger.Warn("Low disk space")
logger.Error("DB connection failed")
logger.Fatal("Out of memory")logger.Console("SQL", "SELECT * FROM users")(different color)
logger.LogInit("INIT", "Cache initialized")logger.PrettyPrintJSON(interface)logger.Cleanup(7) // Keep logs from last 7 months