{"_id":"@ajayos/nodelog","name":"@ajayos/nodelog","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@ajayos/nodelog","version":"1.0.2","description":"This is a logging module that allows the user to log messages with different severity levels.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/Ajayos/nodelog.git"},"keywords":["nodelog","node","js","ajay","log"],"author":{"name":"Ajay o s"},"license":"Apache-2.0","bugs":{"url":"https://github.com/Ajayos/nodelog/issues"},"homepage":"https://github.com/Ajayos/nodelog#readme","dependencies":{"color":"^4.2.3","colors":"^1.4.0"},"gitHead":"e6332d1d975a517a16085a07db0f150a31489e12","_id":"@ajayos/nodelog@1.0.2","_nodeVersion":"19.4.0","_npmVersion":"9.3.0","dist":{"integrity":"sha512-I6SjuHSTtsb/AiGSb02pdT564KfoIIwIVkfHlehtAJToWo4fYoaS/aBkKQOKj0/17d+36g6B3BQptoGU4ogyrw==","shasum":"af9114a6f01d24bcf76829d9e770c38770ae19cd","tarball":"https://registry.npmjs.org/@ajayos/nodelog/-/nodelog-1.0.2.tgz","fileCount":5,"unpackedSize":18825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpGBZD0G5ETxgEQqeHnS7tGW+KDMHOAFkEUxjDv88VmQIgd45Gudrd70+LkohqQIDjEBx5MY447Zp1Z6vmegTVJC0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTRLwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprWw//U7HiwOxbft0IbpOsdaLDXbO59i3nAfuO3s7P3P1fW1rGT3wA\r\nO2HehDoaQrH6J59bi891PkGMmHVzI4vnnMyLzJO1i8+7sBUtylXAbBJF+/PL\r\n3jiCTRo9cY2GUGJzChzubS5xADBB1nPdhoX6SvF5BuvOrHacHcCNsvwcybQR\r\nbt7HoSQViUYuEMRo8TjcCeJ9qelrgAm9FMdOsBaOuOzhLcitfI1g/9QeuBcf\r\npuI+Gs3xF0YaylCLZayFyNJKBWTbbMlds5iqrRIo6ToGsMosVoMwUpCC7Fqy\r\nZl774EpSF8dD7rz76Yogl6ylzDgOaz6fRKDZShOFsBR6jbobE5p6EXVbkA5K\r\nat6eY7rktYRRBIV1RXcy2hS+6P2DYO6QQNjiJb9Yv9Kgvb5lN6LYnMsZGiNP\r\niguGV80bu1h/FZBrIa4m1yKFJwKDu2YqoiIX9Kx1dFLxB+QnYTIYATjgwOj7\r\nfOhvwvLJQsEwK7By5kzGH3Plx/aSmDA0nJLEAwiviUltmHpmDZU7gQMGMMBi\r\nQWIFPbEGELiDe0VLBR58Grfya6yNsDSk0SS+++sTAve9hU8BEFk90jshjeq9\r\n0jNL8C+0f0AYCkQOMN2paZz83UA4tyKTad1MeQR+vtaSoP9ycSE5djBpyfG4\r\ndu9ckCCPqEZoTTjTzFt6rzEfFQ+D36mRp2A=\r\n=uUUN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ajayos","email":"ajayosakhub@gmail.com"},"directories":{},"maintainers":[{"name":"ajayos","email":"ajayosakhub@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nodelog_1.0.2_1682772720487_0.09127551535474487"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-29T12:52:00.431Z","1.0.2":"2023-04-29T12:52:00.650Z","modified":"2023-04-29T12:52:00.836Z"},"maintainers":[{"name":"ajayos","email":"ajayosakhub@gmail.com"}],"description":"This is a logging module that allows the user to log messages with different severity levels.","homepage":"https://github.com/Ajayos/nodelog#readme","keywords":["nodelog","node","js","ajay","log"],"repository":{"type":"git","url":"git+https://github.com/Ajayos/nodelog.git"},"author":{"name":"Ajay o s"},"bugs":{"url":"https://github.com/Ajayos/nodelog/issues"},"license":"Apache-2.0","readme":"# nodelog\r\n`@ajayos/nodelog` is a Node.js module for log messages with customizable severity levels and output formats.\r\n\r\n## Installation\r\nTo install `@ajayos/nodelog`, run:\r\n```shell\r\nnpm install @ajayos/nodelog\r\n```\r\n\r\n## Usage\r\nFirst, import the module into your Node.js application:\r\n\r\n```js\r\nconst nodelog = require('@ajayos/nodelog');\r\n```\r\n\r\nyou can log messages with the log method:\r\n\r\n```js\r\nlog('This is an informational message', 'info');\r\nlog('This is a warning message', 'warn');\r\nlog('This is an error message', 'error');\r\n```\r\nYou can also log messages with the default severity level by omitting the second argument:\r\n\r\n```js\r\nlog('This is a default message');\r\n```\r\n\r\nfor Line\r\n```js\r\nlog()\r\n```\r\n\r\n## Message Types\r\nThe following message types are available for the log method:\r\n\r\n* `info` &nbsp;&nbsp;(or `i`): Informational message (green text)\r\n* `warn` &nbsp;&nbsp;(or `w`): Warning message (yellow text)\r\n* `error` (or `e`): Error message (red text)\r\n* `debug` (or `d`): Debug message (magenta text)\r\n* `fatal` (or `f`): Fatal message (white text on red background)\r\n* `line` &nbsp;(or `l`): Horizontal line (cyan text)\r\n## Output Format\r\nThe output format for each message type is as follows:\r\n\r\n* Informational message (green text): `[timestamp] [*]> message`\r\n* Warning message (yellow text): `[timestamp] [!]> message`\r\n* Error message (red text): `[timestamp] [x]> message`\r\n* Debug message (magenta text): `[timestamp] [*]> message`\r\n* Fatal message (white text on red background): `[timestamp] [!]> message`\r\n* Horizontal line (cyan text): `>-----------------------------<`\r\n## License\r\nnodelogger is released under the [`Apache-2.0`](/LICENSE) License.\r\n","readmeFilename":"README.md"}