{"_id":"@7util/logger","_rev":"8-7ae2334283cff2e0fb2a03639494157e","name":"@7util/logger","dist-tags":{"latest":"3.0.1"},"versions":{"2.2.4":{"name":"@7util/logger","version":"2.2.4","keywords":["logger"],"author":{"name":"IvoObr"},"license":"ISC","_id":"@7util/logger@2.2.4","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"homepage":"https://github.com/IvoObr/logger-js#readme","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"dist":{"shasum":"8fa48b075cf0131b78648bb8fe813221345b734d","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-2.2.4.tgz","fileCount":5,"integrity":"sha512-oY4uIcv+m9dVrX5lKdYNxRmmRZN6Xq7yJeF2og3pvjDGpLWosk3jqFGtG5xKtgTc2UXeu9jkwpxDG1+3Yz+boQ==","signatures":[{"sig":"MEQCICto6ZgIxCrELLOvQOvp3bBpY1z9AlFYoKeGQJ574XyQAiAsjuYwp6Gw/X/zQ4l2YuTVTRNe1txQw4mzTcPYhraxmw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsKhACRA9TVsSAnZWagAAq5QP+wZG1E1LPINk6lwaVIwa\nuSdZ7R2I8uy8fw/HnYyKhJdKpaVmQvlkFh7bD7XUwR2mPNp7YgVHfvLSjDXW\n/nUlR6ARzLeI3jUUQ0MGqhx6MgE0pG5bcX3NBWMDMJMs1EEfv+jKZhgNIDpy\nWo0mztWN3CTQMopKl+p+zxXOuwG7td+/JHp6EwbDTS78QU/N9AXWFFn5hkM1\n79uYCiHA2RKN3Zg1z4ZxmkwzFuHKReaovY7a0tx0kDzDJ6KSk52xviMiCwwv\n84exNKRVxj/305SLHJbwJntNP6ah0ItUXoRiUoXmi3Vth1xSEmkEytz8aTRH\nHXX8RKvL8oAp6U9ZbW9RX1visY+Ir0x0IrS9EYUgnDmUf1LRmE09bR9Do0oK\nY48Nc/b2hNpJ09tWqkleOCaw/pkMlm3bBjI23mSqY59/HcRArTWgLVdCOsId\nG7H0XbWNzGMXwCsxerQxS1orJBSLoHIwUJMnBE+ocRtDJeVSfYAzSHsuvCXB\nO0pihNL3NHVejUEuDKGF80yh9lu9ZHzVdST7R73Z+uInFqgluPQvIfXPtOId\nLjl9G61Aoi9uJhJ7sEogftm1F/aAdTxUgEyPSfXSC7/LIOSp3/NH1oLvekwP\nQSicvIeX0pCy5K63BB55txmNooiSQetNTcYtnCsCoeXeFGRBKTv+EuCAD85R\nMjZk\r\n=FFZQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"f253e5626eabc27cfd3f4016cb2943cc7166026f","scripts":{"build":"tsc"},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"repository":{"url":"git+https://github.com/IvoObr/logger-js.git","type":"git"},"_npmVersion":"6.14.12","description":"Simple JS logger","directories":{},"_nodeVersion":"14.16.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.2.3","@types/node":"^14.14.35"},"_npmOperationalInternal":{"tmp":"tmp/logger_2.2.4_1638967360042_0.43186756976988416","host":"s3://npm-registry-packages"}},"2.2.5":{"name":"@7util/logger","version":"2.2.5","keywords":["logger"],"author":{"name":"IvoObr"},"license":"ISC","_id":"@7util/logger@2.2.5","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"homepage":"https://github.com/IvoObr/logger-js#readme","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"dist":{"shasum":"2885698f89477409b6d5dfec39d6efed22a7aec5","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-2.2.5.tgz","fileCount":5,"integrity":"sha512-LMl8RVieBb3YjuJda5FFjJNU4FSMLzZd3YE+yyv+o+2ZhYrlZ+t/1UZZ/rYtYnwQRdIfpI9YFazNOJiDq9lU1g==","signatures":[{"sig":"MEUCIETGoIRZ3k77vgu6rAXTydviR8as0fcYMwriOqIRbXSJAiEAyUL9M5U1akSPps+wlhjtwbFR67EH1KLMs2K4eLmU6gY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKeH2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmok/A/9F/Coov5nlalq/GrL/9mFPrAanMp4CY+t2/DGh0sdjnGAV7ij\r\nG6JxA5Mrg4/BN9ZSy/sh6sThHIqQXMjNdZi285SK5aSJL/VfY81XQTsID1E6\r\nPCrDkireS514uqvBRE2O0sw7wRPULVFL+yywlcBbcDnHHcbbMG3YeZ+L5CAM\r\nj/XSnthIKxWX23yr6GzZfM4mgPjfLyOFLRCGpg1GOz/ZE1mYgcFVswYkYjvr\r\ncbbLHMOwy/BxcKyVjvtS0SzPSmdqq00Xb5pDVqkJRD8ZYNtuSmUPUqJ+x/nV\r\nuW1+EhQiSKQUGSJJzuPtHHdnYw7Q965qa/jOGR8UsPrSigiqCY8DyjwlJ7jQ\r\nJuiZPmwfTjQLqlHKbGwQbAIYCoDlRUQa4CJN8MzY6yKhtUAYK8jpeXyolmjC\r\nNfz+8iHQ2BIgUVTQQgDxv/yh8hQGpgGX1TK4sTR/JsHapLR4aqvzBJCI9+we\r\naLCzSxIAdd6pnpJ2MMBk7GAetJ1tXB/e6GjPC9V3zzQmL7JzoEuUKvV/QOoL\r\nGET8gYcHen1qNe3DExS8UHi5jsJb9b6VG51WXu2v+7LRWGEEprH4jmRy+ZnK\r\nmBJzSv0xGCbM9h5z/GBHu1QajOwTTx5VUSv0ljscQ60PMgqV6tDIyhDfz/Qg\r\nF96qlByhtlFCsXdTjjStpPbIm9s0m5FCPhk=\r\n=WnCa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e3e4bd308fb95ca5644228aa3e78e987cd8218c8","scripts":{"build":"tsc"},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"repository":{"url":"git+https://github.com/IvoObr/logger-js.git","type":"git"},"_npmVersion":"6.14.12","description":"Simple JS logger","directories":{},"_nodeVersion":"14.16.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.2.3","@types/node":"^14.14.35"},"_npmOperationalInternal":{"tmp":"tmp/logger_2.2.5_1646911990504_0.7349757898523681","host":"s3://npm-registry-packages"}},"2.2.6":{"name":"@7util/logger","version":"2.2.6","keywords":["logger"],"author":{"name":"IvoObr"},"license":"ISC","_id":"@7util/logger@2.2.6","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"homepage":"https://github.com/IvoObr/logger-js#readme","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"dist":{"shasum":"174e2e428bf330ba0ff2ab1d7b8344d5ee67dba9","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-2.2.6.tgz","fileCount":5,"integrity":"sha512-3jUKkmy5AcBXegfuJiqYgI4x5mOl3glpP4xqYfVMTFlupmvZ1hczuwqKvMtVQQjh8KhLwLpfeV/wQgWse2xV0Q==","signatures":[{"sig":"MEUCIQDDOnUmua8hrCZQ7qEAMA3xubADuGFRAFUXSkybziLmXQIgHFi31N1nBRxZ/t4OeSI1LVU6ZmORB6WiO8cAAiYO/LM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17403},"main":"index.js","gitHead":"174c6b67b10537acf028a4342aac57c76d4a5446","scripts":{"build":"tsc"},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"repository":{"url":"git+https://github.com/IvoObr/logger-js.git","type":"git"},"_npmVersion":"6.14.11","description":"Simple JS logger","directories":{},"_nodeVersion":"14.16.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.2.3","@types/node":"^14.14.35"},"_npmOperationalInternal":{"tmp":"tmp/logger_2.2.6_1684186209500_0.5549663107134675","host":"s3://npm-registry-packages"}},"2.2.7":{"name":"@7util/logger","version":"2.2.7","keywords":["logger"],"author":{"name":"IvoObr"},"license":"ISC","_id":"@7util/logger@2.2.7","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"homepage":"https://github.com/IvoObr/logger-js#readme","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"dist":{"shasum":"f7f4a002d76bb221b861b5ac7a0e965e3d209840","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-2.2.7.tgz","fileCount":5,"integrity":"sha512-xv/OLajsEb9xyZnvYEIDl4fJXUuzkLzNwt1Xgxjg20br0JEmCApQ+3jIiskghdnzLDLeV+q7/rgIq/vZIekMOQ==","signatures":[{"sig":"MEYCIQDvOOc/Oc6SLe9FmrI4WBHOykTqE8ILhBOW4YVkOxOXhAIhAOuWe4nxfXwS6KbWB8kBI+WzlMQerMUwBC23tswyxkaG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17136},"main":"index.js","types":"./index.d.ts","gitHead":"bfa7a85a797667f1dfd67076b7caa6f8e6a7c155","scripts":{"build":"tsc"},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"repository":{"url":"git+https://github.com/IvoObr/logger-js.git","type":"git"},"_npmVersion":"9.5.0","description":"Simple JS logger","directories":{},"_nodeVersion":"18.15.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.2.3","@types/node":"^14.18.47"},"_npmOperationalInternal":{"tmp":"tmp/logger_2.2.7_1684241939248_0.1807138465079614","host":"s3://npm-registry-packages"}},"2.2.8":{"name":"@7util/logger","version":"2.2.8","keywords":["logger"],"author":{"name":"IvoObr"},"license":"ISC","_id":"@7util/logger@2.2.8","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"homepage":"https://github.com/IvoObr/logger-js#readme","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"dist":{"shasum":"62521d64e0c9ae19e4913bf86893396fe64174f3","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-2.2.8.tgz","fileCount":5,"integrity":"sha512-wDtKNe98FR6unjbKXCUFIYEuUKmMgSYSwzAHQo3+Z8kF0u9NtC+j8/4w5OHEyY/dKWB9YP+4xIUBqMcxk6SFTg==","signatures":[{"sig":"MEYCIQDdYsDYxozPO5HipPNlyoFqqginRw1dSoWeJXxQ0sn6sAIhAP36Y+VMCK+KaIa7WSq4QI+Pz678LXMPC8YKGY+WCpAt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17318},"main":"index.js","types":"./index.d.ts","gitHead":"08d092e546fe7ddfc2786f7e4c1959b44c9c619f","scripts":{"build":"tsc"},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"repository":{"url":"git+https://github.com/IvoObr/logger-js.git","type":"git"},"_npmVersion":"9.5.1","description":"Simple JS logger","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.5","@types/node":"^14.18.47"},"_npmOperationalInternal":{"tmp":"tmp/logger_2.2.8_1692871022274_0.7199610032701786","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@7util/logger","version":"3.0.0","keywords":["logger"],"author":{"name":"IvoObr"},"license":"ISC","_id":"@7util/logger@3.0.0","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"homepage":"https://github.com/IvoObr/logger-js#readme","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"dist":{"shasum":"ece74695e58f1dee139720d7b31f40694dda8c50","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-3.0.0.tgz","fileCount":5,"integrity":"sha512-smfMOD0De1uptQpIJd8v+BlxUyW4bsD+YR5sHQaD+k4kzCFsMXuNMasGLf8YsK/1siE/ce1lyTj/QRR0Lm6ZJQ==","signatures":[{"sig":"MEQCIGXMVix0NAXV4bUOnm/ARswqXtwwvQymjP4+K7dWmhV6AiAjWJZL90fMk8gvx1Uoae/2AZNbTSpnYfwZJ3MyaPHDPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34871},"main":"index.js","types":"index.d.ts","browser":{"fs":false,"path":false},"gitHead":"de9b66f986eb5a80e54c420cec631e5844c842be","scripts":{"test":"node --test","build":"tsc","typecheck":"tsc --noEmit","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"repository":{"url":"git+https://github.com/IvoObr/logger-js.git","type":"git"},"_npmVersion":"11.17.0","description":"Simple JS logger","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.5","@types/node":"^14.18.47"},"_npmOperationalInternal":{"tmp":"tmp/logger_3.0.0_1788958830559_0.0908755554831957","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@7util/logger","version":"3.0.1","description":"Simple JS logger","main":"index.js","scripts":{"build":"tsc","test":"node --test","typecheck":"tsc --noEmit","prepublishOnly":"npm run build && npm test"},"repository":{"type":"git","url":"git+https://github.com/IvoObr/logger-js.git"},"author":{"name":"IvoObr"},"license":"ISC","bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"homepage":"https://github.com/IvoObr/logger-js#readme","keywords":["logger"],"devDependencies":{"@types/node":"^14.18.47","typescript":"^4.9.5"},"types":"index.d.ts","browser":{"fs":false,"path":false},"gitHead":"a99ef320a853df42ba07bb24612f85e00e5783aa","_id":"@7util/logger@3.0.1","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-eWRxcQ3KZlGlaSt9B+uvP0z45xCN/qrz5wNO668lcDX3xcfMrX361gGLJgTO3jZwZLlx8j4Sl7xJl/N9SkQ/aQ==","shasum":"100d408b3d840770d0238f850634949e43eda198","tarball":"https://registry.npmjs.org/@7util/logger/-/logger-3.0.1.tgz","fileCount":5,"unpackedSize":37166,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDL7uEC2dRvenb3HqCiJzvq9516GDtRVaV1qMZLIGvD1QIgZcUf5mq2iU1B4eSjcwaPXNVHbcalB8aIAsIogFAntQU="}]},"_npmUser":{"name":"ivoobr","email":"ivo_obr@hotmail.com"},"directories":{},"maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logger_3.0.1_1789050385466_0.7638919458311779"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-08T12:42:39.963Z","modified":"2026-09-10T14:26:25.857Z","2.2.4":"2021-12-08T12:42:40.221Z","2.2.5":"2022-03-10T11:33:10.659Z","2.2.6":"2023-05-15T21:30:09.719Z","2.2.7":"2023-05-16T12:58:59.406Z","2.2.8":"2023-08-24T09:57:02.496Z","3.0.0":"2026-09-09T13:00:30.688Z","3.0.1":"2026-09-10T14:26:25.658Z"},"bugs":{"url":"https://github.com/IvoObr/logger-js/issues"},"author":{"name":"IvoObr"},"license":"ISC","homepage":"https://github.com/IvoObr/logger-js#readme","keywords":["logger"],"repository":{"type":"git","url":"git+https://github.com/IvoObr/logger-js.git"},"description":"Simple JS logger","maintainers":[{"name":"ivoobr","email":"ivo_obr@hotmail.com"}],"readme":"## Logger :rocket:\n##### Simple JS logger\nSupports Browser, NodeJS and TypeScript\n\n> $ npm install @7util/logger\n\n###  Features :loudspeaker:\n\n* print fully arrays and objects - any depth, cycles included\n* accept multiple arguments\n* trace and error have stack\n* debug level mode\n* have timestamp\n* include TypeScript definitions\n* logs in timestamped files on the disc (NodeJS)\n* never throws on what you log, and never blocks on writing it\n\n### Example\n\n> logger.ts \n```typescript\nimport { Logger, ILogOptions } from '@7util/logger';\n// OR \nconst { Logger } = require('@7util/logger'); // no options interface available\n\n\n/** ILogOptions\n * @prop {boolean} useColor? optional -  Should use colors.\n * @prop {string} fileName? optional - The name of the file.\n * @prop {boolean} logInFile? optional - Should write in file on the disc.\n * @prop {string} logLevel? optional - Will output debug logs if value is \"debug\".\n */\n\nconst options: ILogOptions = {\n    useColor: true,\n    logInFile: true,\n    fileName: 'rest-server.log',\n    logLevel: process.env.LOG_LEVEL\n};\n\nconst logger: Logger = new Logger(options);// or simply ...new Logger()\n\nexport default logger;\n```\n\n:construction: *When using the logger in the browser make sure that all log levels (verbose, info, warnings and errors) are activated.*\n\nIn the browser, `fs` is never loaded and colors are off by default; `logInFile` is\nignored. Bundlers pick this up from the `browser` field in `package.json`.\n\nFile writes are buffered and flushed on the next tick, and whatever is still\nbuffered is written synchronously when the process exits. Call `logger.flush()`\nto force it yourself.\n\n> somewhere in your project...\n```typescript\nimport logger from './logger.ts'; // your logger instance\n\nconst obj = {\n    key: 'value1',\n    inner: { secret: 'value2' },\n    arr: [1, []]\n};\n\nlogger.info('info', obj, 'msg');\nlogger.warn('warn', obj, 'msg');\nlogger.trace('trace', obj, 'msg');\nlogger.error(obj, new Error('msg'));\nlogger.debug('debug', obj, 'msg');\nlogger.success('success', obj, 'msg');\n\n/* output */\n[2021-04-08 13:11:40] INFO: info {\"key\":\"value1\",\"inner\":{\"secret\":\"value2\"},\"arr\":[1,[]]} msg\n[2021-04-08 13:11:40] WARN: warn {\"key\":\"value1\",\"inner\":{\"secret\":\"value2\"},\"arr\":[1,[]]} msg\n[2021-04-08 13:11:40] TRACE: trace {\"key\":\"value1\",\"inner\":{\"secret\":\"value2\"},\"arr\":[1,[]]} msg\n    at Object...\n    at Module...\n[2021-04-08 13:11:40] ERROR: {\"key\":\"value1\",\"inner\":{\"secret\":\"value2\"},\"arr\":[1,[]]} Error: msg\n    at Object...\n    at Module...\n[2021-04-08 13:11:40] DEBUG: debug {\"key\":\"value1\",\"inner\":{\"secret\":\"value2\"},\"arr\":[1,[]]} msg\n[2021-04-08 13:11:40] SUCCESS: success {\"key\":\"value1\",\"inner\":{\"secret\":\"value2\"},\"arr\":[1,[]]} msg\n\n```\n\n\n## Happy coding!  <:beer:/>\n","readmeFilename":"README.md"}