{"_id":"@anton.goncharik/logger","_rev":"3-1a6c34096efcce718aa6f9085cc530ed","name":"@anton.goncharik/logger","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@anton.goncharik/logger","version":"1.0.0","description":"Logger for Node.js to the console, file","main":"./dist/index.js","repository":{"type":"git","url":"git@github.com:AntonGoncharik/logger.git"},"keywords":["logger"],"author":{"name":"AntonGoncharik","email":"ant.goncharik@gmail.com"},"license":"MIT","scripts":{"dev":"nodemon ./src/index.ts","start":"node ./dist/index.js","build":"tsc","doc":"node_modules/.bin/typedoc --entryPointStrategy expand ./src","publish":"yarn run build && yarn version patch && yarn publish --access public"},"devDependencies":{"@types/node":"^16.11.13","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","nodemon":"^2.0.15","prettier":"^2.5.1","ts-node":"^10.4.0","typedoc":"^0.22.10","typescript":"^4.5.4"},"licenseText":"MIT LICENSE\n\nCopyright (c) 2021 Anton Goncharik\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anton.goncharik/logger@1.0.0","dist":{"shasum":"a9adf340b458dea2a34ca39e489ce180fb575490","integrity":"sha512-UfRIfbUoJPSDVvgmOdY1YLqwvi0kgUs6KRl6o3Oxe0cM520P/CbdnV3SZtMylCfchPmCXmR3Qpxb3rbE2JBg0A==","tarball":"https://registry.npmjs.org/@anton.goncharik/logger/-/logger-1.0.0.tgz","fileCount":20,"unpackedSize":16534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzNghCRA9TVsSAnZWagAAWlwP/R3r7XmFyk5s7NkgFOaW\ndbtR/bqk20I6EtHkUYaUs2164PiqEIgDJaxgIam8rPF0c9TPsApOZ7hvC8Vy\n1Qy9xJMXcbbYHrwlOgy3aElCTqAV9IroGT3+EhHSmTLPgom9XYtcnNLKdSYq\nmrjCfJwZMvJg4WSChbqwLgo32miYx8JvEgVFzTQ0IALb5GGUMqIeCTxm5NPY\nKb9QPqQlgpqFOh7TCS4pzYjCo8toujaGeTClz4iOgJm8GdnaRSvscF+ubJT5\n55MONO+Il0GJcIcD0sOXzAz4kUtCCdnErpYqes/bgs/pf8xDRRj5JB9JMWGM\n8ayDbNKp0P1c2TqRYW0n8Db9FG0DN5VbzEPZbwsaR9KwVrGvlDFMcuVldwEZ\nObaDAKzLvP+uiAwupVSempkM68nS1zgwQpx1AyuPT3Eucz32PuCXytNhNSiZ\nJLhWJlKnGIp6A5BXHey+pfNXHZGdRoJdiskHRDHBjZgxF7Rj15HszCb1gKe9\nyDPODN/kExAS7yKAxTgKVmG4JAPRtFQ6kinoWckFint0uR9xiTYXEGGBnBLn\nRrFSRQZIRj+ZgJGRUvc+ycuyJD9VJPCrRWEWYJMc8tLY5uz0uaJlPBmSOuJT\nKanUBWQQBNQf84NDHiaHsBSIAn4mYyX0cKdgFOd8Lip5PvfX8voCq6G/mf9S\ntqOq\r\n=n8/n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHw0O3qz9ayINyRPQpmOS4BvstCww/usieA6rLxMTZ/AiBKlDrfrkUm7BpPIRRyQS5BMz97Ml3nu8TEeFyK6ILOzg=="}]},"_npmUser":{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"},"directories":{},"maintainers":[{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_1.0.0_1640814625497_0.4484016893892768"},"_hasShrinkwrap":false},"1.0.1":{"name":"@anton.goncharik/logger","version":"1.0.1","description":"Logger for Node.js to the console, file","main":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/AntonGoncharik/logger.git"},"homepage":"https://github.com/AntonGoncharik/logger#readme","keywords":["logger"],"author":{"name":"AntonGoncharik","email":"ant.goncharik@gmail.com"},"license":"MIT","scripts":{"dev":"nodemon ./src/index.ts","start":"node ./dist/index.js","build":"tsc","doc":"node_modules/.bin/typedoc --entryPointStrategy expand ./src","publish":"yarn run build && yarn version --patch && yarn publish --access public"},"devDependencies":{"@types/node":"^16.11.13","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","nodemon":"^2.0.15","prettier":"^2.5.1","ts-node":"^10.4.0","typedoc":"^0.22.10","typescript":"^4.5.4"},"licenseText":"MIT LICENSE\n\nCopyright (c) 2021 Anton Goncharik\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anton.goncharik/logger@1.0.1","dist":{"shasum":"79a66233d11d87165f1b378e91a83078361e6767","integrity":"sha512-rOGbQGZ0T3INclRV+a4BRF5TSNCpYUfP/aRTW1xmSjSoy9tqfIPCvVPCELJhOGpdeEBR26Qwx3CxryeesoVuVA==","tarball":"https://registry.npmjs.org/@anton.goncharik/logger/-/logger-1.0.1.tgz","fileCount":20,"unpackedSize":16609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzNvmCRA9TVsSAnZWagAA6lwP/jqjgdYuoaq7Ags2IPs9\n4zcWUwqd+pieH4L0bCyID6xVQB3pcP+kNAka7mubUH1f9JQ/JgYQ89h38sqj\ntoFBstbvBU6QvQ96C0pTJDqCerdKevIHgutZgA45hLdpn6b9r0cn+pmAGHBH\nnbaE0SbQPzya8oUiAhEYkv0IyvPftNIriYlieyEhiU7qiPcEAeQTUxMBwiIr\nMbok3YhFHgWu1n9WvoubuUEa88OeyGl7wAT4k6Pv6lAKwlLqke1QlRnWWh5d\n9LLa8iUZF/fiIu4MjC6FWV9kqTD9deYRfr9onmafoFVSXfV81/ZQYvg9OVPH\nvH8pt7bf4Ic/CLCTrwUXhTp+OChIZwbbP20Oyf3j/BYD7iuysZUXaVeF2ENV\nGrCTx/QUAmCX9cgwf3In+Jj9fJhB5mBHUsw4ogGfK0fUKYDV8w4LLhtkAL5j\nWs7pFjk3Vs2gUKEIAbnrm6c0baHMogPq6/p7CZYJnN3cSpBAHHAXYrAsBSN4\nJHwEY4tv+MtM1eRosOWvtYEtDU5Wa5oy6U2e8jKTPptv99HLZhqtv9veGOB+\nzqsi/qXS0WCoVYF0MxA1BY6YAzBGG8kUGlbnQdNDAjPhSGfWNIqLBQ6OC48u\nPslL7axIgulW/TWhxMEzXhu2ZYBqAFoPYDsD+gYjBVy+yp0YxcaaueOiPpQN\nyDcY\r\n=dj8m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEndCSY8tS5yMFd3EOlr7bdvCxmFVSW6jBJGX4q1f+AhAiEAufxEf4EL8Ek+tKH57hg6pc4pgn79RZnW40NTin4ANRI="}]},"_npmUser":{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"},"directories":{},"maintainers":[{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_1.0.1_1640815590326_0.4262172085886431"},"_hasShrinkwrap":false},"1.0.3":{"name":"@anton.goncharik/logger","version":"1.0.3","description":"Logger for Node.js to the console, file","main":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/AntonGoncharik/logger.git"},"homepage":"https://github.com/AntonGoncharik/logger#readme","keywords":["logger"],"author":{"name":"AntonGoncharik","email":"ant.goncharik@gmail.com"},"license":"MIT","scripts":{"dev":"nodemon ./src/index.ts","start":"node ./dist/index.js","build":"tsc","doc":"node_modules/.bin/typedoc --entryPointStrategy expand ./src","pub":"yarn run build && yarn version --patch && yarn publish --access public"},"devDependencies":{"@types/node":"^16.11.13","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","nodemon":"^2.0.15","prettier":"^2.5.1","ts-node":"^10.4.0","typedoc":"^0.22.10","typescript":"^4.5.4"},"licenseText":"MIT LICENSE\n\nCopyright (c) 2021 Anton Goncharik\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anton.goncharik/logger@1.0.3","dist":{"shasum":"16de3ab68646c49cec398378c5a16bacf1ff1f7b","integrity":"sha512-YnLTdT4krISJcV4SIuY3OUtPqFbgkdNRfAi7Gy3qgQhEwf49fhlx6OMnSyAYOTQBDgycwfpPHht8BaloTH7f8g==","tarball":"https://registry.npmjs.org/@anton.goncharik/logger/-/logger-1.0.3.tgz","fileCount":20,"unpackedSize":16605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1J34CRA9TVsSAnZWagAAF88P/A27spLvDlmr026+CyQk\noRq3L/KqiBIDmXmLEvofFzcCk1aKUY2A1PBcqB3xxQApkBXI1CAWMBIlVB47\n8QOfeOGBIwD79BUP9e0QaNsZKtyzRAMiOQpRN7p95gTTdPkQ45rgZajHGNjc\ndbn9LKYovWGBiM60kj2j8VQ06gTOcavEcSi7J1AWdkEzhxYlwLsZpH8GWbKq\nFF69rM4v8/i7bRA5Vb8xc248rFHnw2FY72rDwaTrc8XhUeXKe0PGiztGZSTB\nQWy5v2PDfzEx+zi4N9W3ghVIeg+acmPWOFPdcTnH/GRFvVWSGwZIl/7Gt4jS\n5GCPurjiB97R1x83ItnD+vB8X9s2WDzvnVthPtKXQbgc8vW5zCp3AxeKOPnC\noMrKSksMjb+DSw9w+Wgs/o7DLt6K++8zly0jSm+bqtwTqcqKjWu7b04ctBka\nK/EusZr3F6VJ/R5WgOIHLgKlf/dXQhFufDOzwhUSSquRSrWiEV+rNGRN57lv\n/PJ8ZdGc2AW3r3i8Dg/q/7pC7A1HFO0zXzpH0Yx7+u9aOPlp1xCKmhMKO7yL\nYH6/+Rl3zNBEbQA3DSeR6KuNBOY61YGvfLVcOB/8DnDGeVSioh2rURTNb7lC\nXSxlmnGapbsZat+xE8Wg7OVrSdHGNQbefs0xGD+yNn45LYVyh8KiPblH2Kf3\n8ljF\r\n=PwWh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoqI4uY20pIAieUmjvQ2nLbXSHRBt8p2SwzKxXgpp+2AiAXp811XwGfXAMPyQ6J12OQPKACyX0P+uEd8jN4qaQibg=="}]},"_npmUser":{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"},"directories":{},"maintainers":[{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_1.0.3_1641324024446_0.9622752582209482"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-29T21:50:25.444Z","1.0.0":"2021-12-29T21:50:25.666Z","modified":"2022-04-04T14:23:03.490Z","1.0.1":"2021-12-29T22:06:30.476Z","1.0.3":"2022-01-04T19:20:24.604Z"},"maintainers":[{"name":"anton_goncharik","email":"ant.goncharik@gmail.com"}],"description":"Logger for Node.js to the console, file","keywords":["logger"],"repository":{"type":"git","url":"git+https://github.com/AntonGoncharik/logger.git"},"author":{"name":"AntonGoncharik","email":"ant.goncharik@gmail.com"},"license":"MIT","readme":"# Logger for Node.js\n\n## 📦 Install\n\n`npm install @anton.goncharik/logger`\n\n`yarn add @anton.goncharik/logger`\n\nhttps://github.com/AntonGoncharik/logger\n\n## 🔨 API\n\n##### Logger\n\n`import Logger from '@anton.goncharik/logger';`\n\n##### Logger methods\n\n`1. Logger.journal();` - return Journal class\n\n##### Journal\n\n`const Journal = Logger.journal();`\n\n`export const server = new Journal(name: string, {dirname: string, file: boolean});` - create new Journal object\n\nname - your process name\ndirname - path for folding logs\nfile - flag to write to file\n\n##### Journal methods\n\n`1. journal.error('Your message');`\n\n`3. journal.warn('Your message');`\n\n`4. journal.info('Your message');`\n\n`5. journal.trace('Your message');`\n\n`6. journal.debug('Your message');`\n\n`7. journal.log('Your message');`\n\n## 🔨 Example\n\n#### CommonJS\n\n##### Module logger\n\n`const Logger = require('@anton.goncharik/logger');`\n\n`const Journal = Logger.journal();`\n\n`module.exports.server = new Journal('server', {dirname: 'logs/server', file: true});`\n\n`module.exports.controller = new Journal('controller', {dirname: 'logs/controller', file: false});`\n\n##### Some module\n\n`import { server as journal } from 'your path module logger';`\n\n`journal.info('Your message');`\n\n#### ES6\n\n##### Module logger\n\n`import Logger from '@anton.goncharik/logger';`\n\n`const Journal = Logger.journal();`\n\n`export const server = new Journal('server', {dirname: 'logs/server', file: true});`\n\n`export const controller = new Journal('controller', {dirname: 'logs/controller', file: false});`\n\n##### Some module\n\n`import { controller as journal } from 'your path module logger';`\n\n`controller.error('Your message');`\n\n#### Output format\n\n##### [MESSAGE LEVEL] - [Name] - [Date]\n\n##### << Message >>\n\n#\n\n#### Output example\n\n##### [INFO] - [server] - [2021-12-26T21:16:17.684Z]\n\n##### << Database has being connected >>\n\n## TypeScript\n\n`@anton.goncharik/logger` is written in TypeScript with complete definitions.\n","readmeFilename":"README.md","homepage":"https://github.com/AntonGoncharik/logger#readme"}