{"id":22841034,"url":"https://github.com/billowdev/clog","last_synced_at":"2025-05-07T00:43:21.828Z","repository":{"id":267575954,"uuid":"901665446","full_name":"billowdev/clog","owner":"billowdev","description":"A powerful, colorful, and feature-rich logging package that provides enhanced logging ","archived":false,"fork":false,"pushed_at":"2024-12-11T06:10:58.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T04:38:40.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/billowdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-11T04:55:03.000Z","updated_at":"2024-12-18T13:11:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd51f4c4-8916-4838-82b7-fdab925bee3b","html_url":"https://github.com/billowdev/clog","commit_stats":null,"previous_names":["billowdev/clog"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fclog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fclog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fclog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fclog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billowdev","download_url":"https://codeload.github.com/billowdev/clog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252793559,"owners_count":21805053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T01:14:20.469Z","updated_at":"2025-05-07T00:43:21.809Z","avatar_url":"https://github.com/billowdev.png","language":"Go","readme":"# 🚀 clog - Colored Logger for Golang\nA powerful, colorful, and feature-rich logging package that provides enhanced logging capabilities with emoji indicators, color-coded output, and comprehensive debugging features.\n\n### ✨ Features\n\n- Color-coded output with emoji indicators\n- UTC timestamps with millisecond precision\n- File and line number tracking\n- Goroutine ID tracking\n- Performance metrics logging\n- Multiple log levels with filtering\n- Panic handling with stack traces\n- Configurable output formatting\n\n### 📥 Installation\n```bash\ngo get github.com/billowdev/clog\n```\n\n### 🔰 Quick Start\n```go\npackage main\n\nimport \"github.com/billowdev/clog\"\n\nfunc main() {\n    // Configure logging\n    clog.SetLogLevel(clog.DebugLevel)\n    \n    clog.Info(\"Starting application...\")\n    clog.Success(\"Connected to database\")\n    clog.Error(\"Failed to connect: %v\", err)\n}\n```\n\n🎯 Log Levels\n- PanicLevel  - System is unusable (💥)\n- ErrorLevel  - Error events (❌)\n- WarningLevel - Warning messages (⚠️)\n- InfoLevel   - General information (ℹ️)\n- DebugLevel  - Debug information (🔍)\n- TraceLevel  - Detailed debugging (📍)\n\n### ⚙️ Configuration\n```go\n// Set minimum log level\nclog.SetLogLevel(clog.DebugLevel)\n\n// Enable/disable file and line info\nclog.SetShowFileLine(true)\n\n// Enable/disable goroutine ID\nclog.SetShowGoroutineID(true)\n```\n\n\n### 📝 Example Output\n\n- 🚀 INIT     [2024-12-11 15:04:05.123 UTC] [main.go:25] (goroutine 1) Starting service\n- ⚙️ CONFIG   [2024-12-11 15:04:05.124 UTC] [main.go:26] Loading configuration\n- ℹ️ INFO     [2024-12-11 15:04:05.125 UTC] [main.go:27] Processing request\n- ✅ SUCCESS  [2024-12-11 15:04:05.126 UTC] [main.go:28] Request completed\n- ❌ ERROR    [2024-12-11 15:04:05.127 UTC] [main.go:29] Connection failed\n\n\n### 🎨 Log Types\n\n- ℹ️  INFO     - General information\n- ✅ SUCCESS  - Successful operations\n- 🚀 INIT     - Initialization events\n- ⚙️  CONFIG   - Configuration events\n- ⚠️  WARNING  - Warning messages\n- ❌ ERROR    - Error messages\n- 🔍 DEBUG    - Debug information\n- 📍 TRACE    - Trace-level debugging\n- 💥 PANIC    - Critical errors\n- 📊 METRIC   - Performance metrics\n\n### 📋 Usage Examples\nBasic Logging:\n```go\nclog.Info(\"Processing request from %s\", clientIP)\nclog.Success(\"Request completed successfully\")\nclog.Warning(\"High memory usage: %d%%\", memoryUsage)\nclog.Error(\"Failed to connect: %v\", err)\n```\n\nMetrics \u0026 Debug:\n```go\n// Performance metrics\nclog.Metric(\"response_time_ms\", 150, \"endpoint=/api/users\", \"method=GET\")\n\n// Debug info\nclog.Debug(\"Request payload: %+v\", payload)\nclog.Trace(\"SQL query: %s\", query)\n```\n\n### 📄 License\nMIT License\n🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n### 💡 Support\nFor support, please open an issue in the GitHub repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillowdev%2Fclog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillowdev%2Fclog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillowdev%2Fclog/lists"}