{"id":51389425,"url":"https://github.com/furkibuu/aiko_logger","last_synced_at":"2026-07-03T22:06:50.384Z","repository":{"id":351856360,"uuid":"1185719419","full_name":"furkibuu/aiko_logger","owner":"furkibuu","description":"Advanced, colorful logger for Node.js with file rotation, webhook integration and multilingual support (TR/EN)","archived":false,"fork":false,"pushed_at":"2026-04-16T18:41:11.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-16T20:30:32.804Z","etag":null,"topics":["console","debug","discord","logger","logging","nodejs","npm-package","webhook"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/aiko.logger?activeTab=readme","language":"JavaScript","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/furkibuu.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T21:58:15.000Z","updated_at":"2026-04-16T18:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/furkibuu/aiko_logger","commit_stats":null,"previous_names":["furkibuu/aiko_logger"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/furkibuu/aiko_logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkibuu%2Faiko_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkibuu%2Faiko_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkibuu%2Faiko_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkibuu%2Faiko_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furkibuu","download_url":"https://codeload.github.com/furkibuu/aiko_logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkibuu%2Faiko_logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35102794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["console","debug","discord","logger","logging","nodejs","npm-package","webhook"],"created_at":"2026-07-03T22:06:49.957Z","updated_at":"2026-07-03T22:06:50.372Z","avatar_url":"https://github.com/furkibuu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪵 aiko.logger\n\n\u003e ⚡ High-performance, zero-dependency logger for Node.js with JSON\n\u003e logging, transports, prefix \u0026 webhook support\n\n------------------------------------------------------------------------\n\n![npmversion](https://img.shields.io/npm/v/aiko.logger?style=for-the-badge)\n![downloads](https://img.shields.io/npm/dt/aiko.logger?style=for-the-badge)\n![license](https://img.shields.io/npm/l/aiko.logger?style=for-the-badge)\n![node](https://img.shields.io/node/v/aiko.logger?style=for-the-badge)\n\n\n------------------------------------------------------------------------\n\n## 🚀 Overview\n\n**aiko.logger** is a fast, flexible and production-ready logging library\nfor Node.js.\n\n-   Discord bots 🤖\\\n-   APIs \u0026 backend services 🌐\\\n-   CLI tools 🖥️\n\nBuilt with **non-blocking async I/O** and **zero dependencies**.\n\n------------------------------------------------------------------------\n\n## ✨ Features\n\n-   ⚡ Non-blocking async architecture\n-   🎨 7 log levels\n-   📦 JSON logging support\n-   🔌 Custom transports system\n-   🧩 Prefix (scoped loggers)\n-   🎚️ Log filtering (`minLevel`)\n-   📁 Daily log rotation\n-   🧹 Auto cleanup system\n-   🚀 Discord webhook integration (with embeds)\n-   🛡️ Smart formatting (Object, Array, Error)\n-   🌐 Auto language detection (TR/EN)\n-   📘 TypeScript support\n-   💎 Zero dependencies\n\n------------------------------------------------------------------------\n\n## 📦 Installation\n\n``` bash\nnpm install aiko.logger\n```\n\n------------------------------------------------------------------------\n\n## ⚡ Quick Start\n\n``` js\nconst { Logger } = require('aiko.logger');\n\nconst logger = new Logger({\n  saveToFile: true,\n  webhookUrl: 'YOUR_WEBHOOK_URL',\n  prefix: 'App'\n});\n\nlogger.info('System started');\nlogger.error('Something went wrong');\n```\n\n------------------------------------------------------------------------\n\n## 🧩 Prefix \u0026 Log Filtering\n\n``` js\nconst dbLogger = new Logger({ prefix: 'MongoDB' });\n\ndbLogger.info('Connection established.');\n\nconst webLogger = new Logger({ \n  prefix: 'Express',\n  minLevel: 'warn'\n});\n\nwebLogger.info('This will NOT log');\nwebLogger.error('Timeout!');\n```\n\n------------------------------------------------------------------------\n\n## 📦 JSON Logging\n\n``` js\nconst logger = new Logger({\n  format: 'json',\n  saveToFile: true\n});\n```\n\nOutput:\n\n``` json\n{\n  \"timestamp\": \"2026-01-01T12:00:00.000Z\",\n  \"level\": \"INFO\",\n  \"message\": \"System started\",\n  \"prefix\": \"App\"\n}\n```\n\n------------------------------------------------------------------------\n\n## 🔌 Custom Transports\n\n``` js\nlogger.addTransport((log) =\u003e {\n  console.log(\"Custom transport:\", log);\n});\n```\n\n------------------------------------------------------------------------\n\n## 🚀 Webhook Integration\n\n-   Sends logs as **Discord embeds**\n-   Includes prefix, level and timestamp\n\n------------------------------------------------------------------------\n\n## 🧹 Auto Cleanup\n\n``` js\nconst logger = new Logger({\n  saveToFile: true,\n  keepLogsFor: 7,\n  autoCleanup: true\n});\n```\n\n------------------------------------------------------------------------\n\n## ⚙️ Configuration\n```js\n  Option        Description\n  ------------- ---------------------\n  saveToFile    Enable file logging\n  logFolder     Log directory\n  keepLogsFor   Retention days\n  autoCleanup   Delete old logs\n  webhookUrl    Discord webhook\n  prefix        Label logs\n  minLevel      Filter logs\n  format        `text` or `json`\n```\n------------------------------------------------------------------------\n\n## ⚔️ Comparison\n\n  Feature             aiko.logger   winston   pino\n  ------------------- ------------- --------- ------\n  Zero dependency     ✅            ❌        ❌\n  JSON logging        ✅            ✅        ✅\n  Custom transports   ✅            ✅        ⚠️\n  Lightweight         ✅            ❌        ✅\n\n------------------------------------------------------------------------\n\n## 🚀 Why aiko.logger?\n\n-   No dependencies → no bloat\\\n-   Clean API → easy to use\\\n-   Production-ready features\n\n------------------------------------------------------------------------\n\n## ⭐ Support\n\nGive a ⭐ if you like it!\n\n------------------------------------------------------------------------\n\n## 📄 License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkibuu%2Faiko_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurkibuu%2Faiko_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkibuu%2Faiko_logger/lists"}