{"_id":"@adovelopers/logado","_rev":"6-fef86276b584e64ccc65c85d6b4e62a4","name":"@adovelopers/logado","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@adovelopers/logado","version":"1.0.0","keywords":["logger","nodejs","typescript","console","file"],"author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","_id":"@adovelopers/logado@1.0.0","maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"dist":{"shasum":"58e97783a3fe3f462fe5f33ba9516b6800844423","tarball":"https://registry.npmjs.org/@adovelopers/logado/-/logado-1.0.0.tgz","fileCount":9,"integrity":"sha512-L6gZaSWsXr5X6ZcD4oHr2Lh93yVHDWbZnFd9SwmGDSH8qG5XTPynyTocJAddYRLjQQ121On0rgSnaSiL+gkoJg==","signatures":[{"sig":"MEUCIQC9MX6J+tUFzD5d3V1AGGOxTM8iwcu+dWH+X5QiK8W9iAIgBu5IOxLxlCa1zjq2X2R18NhayBxc/ii8+GRIEilHwZ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6868},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},"_npmVersion":"10.8.2","description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","directories":{},"_nodeVersion":"20.19.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.4","@types/jest":"^29.5.14"},"_npmOperationalInternal":{"tmp":"tmp/logado_1.0.0_1747901885976_0.47754638663944404","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@adovelopers/logado","version":"1.0.1","keywords":["logger","nodejs","typescript","console","file","logging","development","debugging"],"author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","_id":"@adovelopers/logado@1.0.1","maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"contributors":[{"url":"https://github.com/karlbernaldez","name":"Karl Santiago B. Bernaldez"},{"url":"https://github.com/BryanLomerio","name":"Bryan N. Lomerio"}],"homepage":"https://github.com/adovelopers/logado#readme","bugs":{"url":"https://github.com/adovelopers/logado/issues"},"dist":{"shasum":"736abfe293d6834356310c207d6e2f0bcb393cff","tarball":"https://registry.npmjs.org/@adovelopers/logado/-/logado-1.0.1.tgz","fileCount":17,"integrity":"sha512-jDDIc+Vl8fELtanYjc/LJS1AtW1LrYVSwkl6XpUvQHdcW+kkcTG3xp1F5O3pBo4pD+5YHmLFXu6aBlNhZ3Lw+g==","signatures":[{"sig":"MEQCIA6y1r+i2OJCwBI69lgKkybLQJc/2GF7XWwnt1BxGBpQAiB8gkkC7eeGL1cKQhKcYxv2a2nO99SscDIvJ0Bq7SOKYg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1220390},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"f84841f57c959ccdfe78204eaedc11b2969f908f","scripts":{"test":"jest","build":"tsc","clean":"rimraf dist","prepare":"npm run build","publish":"npm publish --access public","prepublishOnly":"npm run build"},"_npmUser":{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},"repository":{"url":"git+https://github.com/adovelopers/logado.git","type":"git"},"_npmVersion":"8.19.4","description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","directories":{},"_nodeVersion":"16.20.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rimraf":"^5.0.1","ts-jest":"^29.3.4","babel-jest":"^29.7.0","typescript":"^5.8.3","@babel/core":"^7.27.1","@types/jest":"^29.5.14","@babel/preset-env":"^7.27.2"},"_npmOperationalInternal":{"tmp":"tmp/logado_1.0.1_1747964887181_0.16327520951357788","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@adovelopers/logado","version":"1.0.2","keywords":["logger","nodejs","typescript","console","file","logging","development","debugging"],"author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","_id":"@adovelopers/logado@1.0.2","maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"contributors":[{"url":"https://github.com/karlbernaldez","name":"Karl Santiago B. Bernaldez"},{"url":"https://github.com/BryanLomerio","name":"Bryan N. Lomerio"}],"homepage":"https://github.com/adovelopers/logado#readme","bugs":{"url":"https://github.com/adovelopers/logado/issues"},"dist":{"shasum":"5cdb5cc2db11da07bc517e02ab77ba68d5e5ee9d","tarball":"https://registry.npmjs.org/@adovelopers/logado/-/logado-1.0.2.tgz","fileCount":17,"integrity":"sha512-pE6BIroq6AQ7kh2J0mZKUqF4WdkDgRcesSl05W4P0oyiqE+o4GD7ZpZT8X7lVS5DePZ0iWvHd7cFMLdHpZQtIA==","signatures":[{"sig":"MEQCIAYowsDYwoENaLssO8gAf4CZEOPjE3RFK+yQgTMFF9oWAiAOYS3rbZo7lZdZ+rYPRKgDUBO+64H+K74V/VpQJYEQVw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1220390},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"a3ae4c160e9b5b9259ff7096f3383c4419a2adf0","scripts":{"test":"jest","build":"tsc","clean":"rimraf dist","prepare":"npm run build","publish":"npm publish --access public","prepublishOnly":"npm run build"},"_npmUser":{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},"repository":{"url":"git+https://github.com/adovelopers/logado.git","type":"git"},"_npmVersion":"8.19.4","description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","directories":{},"_nodeVersion":"16.20.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rimraf":"^5.0.1","ts-jest":"^29.3.4","babel-jest":"^29.7.0","typescript":"^5.8.3","@babel/core":"^7.27.1","@types/jest":"^29.5.14","@babel/preset-env":"^7.27.2"},"_npmOperationalInternal":{"tmp":"tmp/logado_1.0.2_1747965085714_0.013971862469582375","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@adovelopers/logado","version":"1.0.3","keywords":["logger","nodejs","typescript","console","file","logging","development","debugging"],"author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","_id":"@adovelopers/logado@1.0.3","maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"contributors":[{"url":"https://github.com/karlbernaldez","name":"Karl Santiago B. Bernaldez"},{"url":"https://github.com/BryanLomerio","name":"Bryan N. Lomerio"}],"homepage":"https://github.com/adovelopers/logado#readme","bugs":{"url":"https://github.com/adovelopers/logado/issues"},"dist":{"shasum":"d9482d485f840bf5ca68fd151c1e8f00392a2b9b","tarball":"https://registry.npmjs.org/@adovelopers/logado/-/logado-1.0.3.tgz","fileCount":17,"integrity":"sha512-RRzsDEsvDyiLH/LVWAYtCrc9m+iklh5AA7b7bb+2IlZMxH0xaHGazo2xkzn27t4LxY5bHED44IxRm4AeNtsanA==","signatures":[{"sig":"MEYCIQD0+sN9qNS20q5d3Rc7gb803gc4gqR68WRIpx+5oWax9gIhALju38jBc06qHgxh1NitTQqiaIPXS+HLRsumfDqSxybc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1220390},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"e786ce819ac9bc0476f2e5204321008425b7e36d","scripts":{"test":"jest","build":"tsc","clean":"rimraf dist","prepare":"npm run build","publish":"npm publish --access public","prepublishOnly":"npm run build"},"_npmUser":{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},"repository":{"url":"git+https://github.com/adovelopers/logado.git","type":"git"},"_npmVersion":"8.19.4","description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","directories":{},"_nodeVersion":"16.20.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rimraf":"^5.0.1","ts-jest":"^29.3.4","babel-jest":"^29.7.0","typescript":"^5.8.3","@babel/core":"^7.27.1","@types/jest":"^29.5.14","@babel/preset-env":"^7.27.2"},"_npmOperationalInternal":{"tmp":"tmp/logado_1.0.3_1747965564867_0.9381350495606318","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@adovelopers/logado","version":"1.0.4","keywords":["logger","nodejs","typescript","console","file","logging","development","debugging"],"author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","_id":"@adovelopers/logado@1.0.4","maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"contributors":[{"url":"https://github.com/karlbernaldez","name":"Karl Santiago B. Bernaldez"},{"url":"https://github.com/BryanLomerio","name":"Bryan N. Lomerio"}],"homepage":"https://github.com/adovelopers/logado#readme","bugs":{"url":"https://github.com/adovelopers/logado/issues"},"dist":{"shasum":"f694af24800c98484059b962593725556db29d12","tarball":"https://registry.npmjs.org/@adovelopers/logado/-/logado-1.0.4.tgz","fileCount":17,"integrity":"sha512-VipS71EGMdP0Irz7hYgp/UKqZKmheIEH004wRPmkACO88OKXrbPN6wLfUEH0nhyaASWkYCl52BJWT6xbFIfFUQ==","signatures":[{"sig":"MEQCICeug+BnvycAEymhwZV971Y4EF26eNK1tr2uxQUjLlo5AiAet7YjnKWqMVVgfBW0a0kWTU5g2xrSwr+/zCzh38Cghg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1220709},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"c324a848ab9d5ac1211bc3838c9d3ee3b2b0b2ed","scripts":{"test":"jest","build":"tsc","clean":"rimraf dist","prepare":"npm run build","publish":"npm publish --access public","prepublishOnly":"npm run build"},"_npmUser":{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},"repository":{"url":"git+https://github.com/adovelopers/logado.git","type":"git"},"_npmVersion":"8.19.4","description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","directories":{},"_nodeVersion":"16.20.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rimraf":"^5.0.1","ts-jest":"^29.3.4","babel-jest":"^29.7.0","typescript":"^5.8.3","@babel/core":"^7.27.1","@types/jest":"^29.5.14","@babel/preset-env":"^7.27.2"},"_npmOperationalInternal":{"tmp":"tmp/logado_1.0.4_1747966379002_0.657831658562964","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@adovelopers/logado","version":"1.1.0","main":"dist/index.js","types":"dist/index.d.ts","description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","keywords":["logger","nodejs","typescript","console","file","logging","development","debugging"],"scripts":{"build":"tsc","test":"jest","prepare":"npm run build","publish":"npm publish --access public","clean":"rimraf dist","prepublishOnly":"npm run build"},"devDependencies":{"@babel/core":"^7.27.1","@babel/preset-env":"^7.27.2","@types/jest":"^29.5.14","babel-jest":"^29.7.0","jest":"^29.7.0","ts-jest":"^29.3.4","typescript":"^5.8.3","rimraf":"^5.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/adovelopers/logado.git"},"bugs":{"url":"https://github.com/adovelopers/logado/issues"},"homepage":"https://github.com/adovelopers/logado#readme","contributors":[{"name":"Karl Santiago B. Bernaldez","url":"https://github.com/karlbernaldez"},{"name":"Bryan N. Lomerio","url":"https://github.com/BryanLomerio"}],"engines":{"node":">=16.0.0"},"publishConfig":{"access":"public"},"gitHead":"d02094fecf2091006993d9bc357c8918d5e338bb","_id":"@adovelopers/logado@1.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7k6sfGOzuTDedNeYCKezvmVyc9TRWiN6oXkozBkwr+KxAWF4y6eXRqiatHp0Tofu6tbNiGz9zOO+F5mSQxx+Hg==","shasum":"4bc2304dd168af407f9256e290db97570aaf155f","tarball":"https://registry.npmjs.org/@adovelopers/logado/-/logado-1.1.0.tgz","fileCount":17,"unpackedSize":1220311,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA2meqRDo+P5G62sYLdvvWv8YkqWehvCGvwI+YX8b2UcAiAdkZK337+v7lSfZLPGZ58ospZtim2fzMRtQjoiRiqqNQ=="}]},"_npmUser":{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},"directories":{},"maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logado_1.1.0_1747968218225_0.7247321810278968"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-22T08:18:05.884Z","modified":"2025-05-23T02:43:38.719Z","1.0.0":"2025-05-22T08:18:06.148Z","1.0.1":"2025-05-23T01:48:07.486Z","1.0.2":"2025-05-23T01:51:26.003Z","1.0.3":"2025-05-23T01:59:25.224Z","1.0.4":"2025-05-23T02:12:59.274Z","1.1.0":"2025-05-23T02:43:38.483Z"},"bugs":{"url":"https://github.com/adovelopers/logado/issues"},"author":{"name":"Adovelopers Intelligent Systems"},"license":"MIT","homepage":"https://github.com/adovelopers/logado#readme","keywords":["logger","nodejs","typescript","console","file","logging","development","debugging"],"repository":{"type":"git","url":"git+https://github.com/adovelopers/logado.git"},"description":"A production-ready, colorful, log-level-aware Node.js logger built in TypeScript","contributors":[{"name":"Karl Santiago B. Bernaldez","url":"https://github.com/karlbernaldez"},{"name":"Bryan N. Lomerio","url":"https://github.com/BryanLomerio"}],"maintainers":[{"name":"karlbernaldizzy","email":"bernaldezkarlsantiago@gmail.com"},{"name":"aninodev","email":"bryanlomerioanino@gmail.com"}],"readme":"<h1 align=\"center\">\n<img src=\"https://raw.githubusercontent.com/karlbernaldez/logado/main/logado.png\" width=\"300\">\n</h1><br>\n\n<p align=\"center\">\n  <a href=\"https://your-site.com\">\n    <img src=\"https://img.shields.io/badge/powered%20by-Adovelopers-orange.svg?style=flat&colorA=E1523D&colorB=007D8A\" alt=\"Powered by Adovelopers\">\n  </a>\n  <a href=\"https://stackoverflow.com/questions/tagged/logado\">\n    <img src=\"https://img.shields.io/badge/stackoverflow-Ask%20questions-blue.svg\" alt=\"Stack Overflow\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/@adovelopers/logado\">\n    <img src=\"https://badge.fury.io/js/logado.svg\" alt=\"npm version\">\n  </a>\n  <a href=\"https://raw.githubusercontent.com/karlbernaldez/logado/main/LICENSE\">\n    <img src=\"https://img.shields.io/pypi/l/adolib.svg\" alt=\"License\">\n  </a>\n</p>\n\nA powerful, production-grade, file-capable, and color-coded logger for Node.js.\n\n- **Website:** https://adovelopers.com/nodejs/packages/logado/\n- **Documentation:** https://adovelopers.com/nodejs/packages/logado/docs\n- **Source code:** https://github.com/adovelopers/logado\n  \n# LogAdo\n\n**LogAdo** is a collection of small but helpful tools designed to make life easier for new **JavaScript** developers. Whether you're just learning the language or building your first projects, **LogAdo** provides lightweight utilities like easy logging, formatting, and more all in a beginner-friendly way.\n\n---\n\n## 🔧 Why use logado?\n- ✅ Supports **8 log levels**\n- ✅ Configurable **log level filtering**\n- ✅ **File output** for persistent logs\n- ✅ Colorful and timestamped **console output**\n- ✅ Fully typed with **TypeScript** definitions\n- ✅ Lightweight and zero dependencies\n---\n\n## 📦 Installation\n\n```bash\nnpm i @adovelopers/logado\n```\n\n---\n\n## 📘 Usage Example\n\n```javascript\nimport { createLogger } from '@adovelopers/logado';\n\nconst logger = createLogger();\n\nlogger.info('Server started');\nlogger.warn('Memory usage is high');\nlogger.error('Failed to connect to database');\n```\n\n---\n\n## 🔧 Log Levels\n\n| Level   | Value | Use Case                                   |\n|---------|-------|--------------------------------------------|\n| silent  | -1    | Suppresses all logging                    |\n| error   | 0     | Serious issues or crashes                 |\n| warn    | 1     | Warnings about potential problems         |\n| notice  | 2     | General notices (non-errors)              |\n| http    | 3     | HTTP logs and request tracking            |\n| info    | 4     | Informational messages                    |\n| verbose | 5     | Detailed operational logs                 |\n| silly   | 6     | Highly detailed developer-level logs      |\n\nYou can set a minimum log level to control what gets printed.\n\nExample:\n\n```javascript\nconst logger = createLogger({ level: 'warn' });\nlogger.info('Will NOT be shown');\nlogger.warn('This will be shown');\n```\n\n---\n\n#### LoggerOptions\n\n| Option       | Type        | Default         | Description                             |\n|--------------|-------------|-----------------|-----------------------------------------|\n| `level`      | `LogLevel`  | `info`          | Minimum log level to display            |\n| `logToFile`  | `boolean`   | `false`         | Enable/disable file logging             |\n| `logFilePath`| `string`    | `\"./ado.log\"`   | Path to log file (when logToFile is true) |\n\n---\n\n### Methods\n\nEach log level has its own method:\n\n```javascript\nlogger.error(\"Fatal error occurred\");\nlogger.warn(\"Low disk space\");\nlogger.notice(\"User account created\");\nlogger.http(\"GET /api/items\");\nlogger.info(\"Starting application\");\nlogger.verbose(\"Loaded 3 modules\");\nlogger.silly(\"Variable x = 42\");\nYou can also use the generic .log(level, message) method:\n```\n\n```javascript\nlogger.log(\"error\", \"This is equivalent to logger.error()\");\n```\n\n---\n## 📁 File Logging\n\nEnable file output by setting `logToFile: true` and providing `logFilePath`:\n\n```typescript\nconst logger = createLogger({\n  logToFile: true,\n  logFilePath: \"./logs/output.log\"\n});\n```\n\nIf the file doesn’t exist, it will be created.\n\n---\n\n## 💡 Best Practices\n\n- Use \"silly\" and \"verbose\" in development only.\n- Log to file for audit trails and production issues.\n- Use \"http\" for request tracing in Express/Koa apps.\n- Keep log level to \"warn\" or \"error\" in CI/CD and tests.\n\n---\n\n## 🛠️ Contributing\n\n- Fork the repo\n- Create a feature branch\n- Make changes and add tests\n- Run `npm run build && npm run test`\n- Submit a pull request\n\n---\n\n## 📜 License\n\n[© Adovelopers](https://raw.githubusercontent.com/karlbernaldez/logado/main/LICENSE)\n\n---\n\n## 📍 Links\n\n- [NPM Package](https://www.npmjs.com/package/@adovelopers/logado)\n- [GitHub Repo](https://github.com/karlbernaldez/logado)\n\n---\n\n> Built with ❤️ by Adovelopers\n","readmeFilename":"README.MD"}