{"_id":"@amandanwadukwe/colorfullogger","_rev":"3-e7b3bc401db4f6f19c4d2263c0a7bf74","name":"@amandanwadukwe/colorfullogger","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@amandanwadukwe/colorfullogger","version":"1.0.0","description":"A lightweight npm package for logging with colorful output, providing improved readability in the console. Developers can customize log levels, colors, and other settings.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"chalk":"^5.3.0"},"_id":"@amandanwadukwe/colorfullogger@1.0.0","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-nRk9RQHUKq9DM03GoZRFdPqlP+6NKxxbCQyWNqYaS/cs18ACcHQ6f5VQ1kmoA8BrKDzjI7lA/vCWO8N5VUW3Vw==","shasum":"22a0176b9f4d3bd27ff2bec60d712557b1e71953","tarball":"https://registry.npmjs.org/@amandanwadukwe/colorfullogger/-/colorfullogger-1.0.0.tgz","fileCount":4,"unpackedSize":4745,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYnUHC3xYXAdVwBQnJ/sUJmUDuQ8LRv0urAdi+nkLtnAiEAyHMp3AK65PmEJj2BFvJsfMktdwN977RE1Y/4ylqtyZs="}]},"_npmUser":{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"},"directories":{},"maintainers":[{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorfullogger_1.0.0_1709467895400_0.2078781387238562"},"_hasShrinkwrap":false},"1.1.0":{"name":"@amandanwadukwe/colorfullogger","version":"1.1.0","description":"A lightweight npm package for logging with colorful output, providing improved readability in the console. Developers can customize log levels, colors, and other settings.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"chalk":"^5.3.0"},"_id":"@amandanwadukwe/colorfullogger@1.1.0","gitHead":"e6bdf73f29b018beaa8c09396933d468ba25c474","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-DqG5Rs0g60i/K0FHA1kWS4Dm6qdzbpeZNmm1ugc3YfaAUZoMBM0+G7pCHn4H5Az4s3VskLHHj1TDw0RM3C9RkQ==","shasum":"3b90674d9dc838076a6b79527377998a9b851d4e","tarball":"https://registry.npmjs.org/@amandanwadukwe/colorfullogger/-/colorfullogger-1.1.0.tgz","fileCount":4,"unpackedSize":4757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5qB4MCLEGGbl99f/4LoM0VbQT2ld8f2HLCQx9xl9SaAiEAmGE00AssyBUodolbpDJYr2QJn6Qf0IdI8igsWnlXfQk="}]},"_npmUser":{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"},"directories":{},"maintainers":[{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorfullogger_1.1.0_1709469216551_0.6319265292081373"},"_hasShrinkwrap":false},"1.1.1":{"name":"@amandanwadukwe/colorfullogger","version":"1.1.1","description":"A lightweight npm package for logging with colorful output, providing improved readability in the console. Developers can customize log levels, colors, and other settings.","main":"index.mjs","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"chalk":"^5.3.0"},"_id":"@amandanwadukwe/colorfullogger@1.1.1","gitHead":"227d214e8f186ed4b2cf574dbe597343bb7f522b","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-btRuTCbeb18mIAoYsIuOTJZ8PwqeOXRRONbytQzfyFnCuYI5dyYobLkaRyDGL41lbNRvOfoLmTNFMXRcUszeUw==","shasum":"6861eaba19e6e37e5fdf8811a6aae795879eef35","tarball":"https://registry.npmjs.org/@amandanwadukwe/colorfullogger/-/colorfullogger-1.1.1.tgz","fileCount":4,"unpackedSize":4773,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBV2GBlHrSRi4NJthEpGm27dHWY3LqRIKCe3rqoQUJ/RAiEAvMQ/Cf0nZ5QfKBZRVwt0cuSFnl/eQuXn3evvzUYYMlc="}]},"_npmUser":{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"},"directories":{},"maintainers":[{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorfullogger_1.1.1_1709486816623_0.07787748320196175"},"_hasShrinkwrap":false},"1.1.2":{"name":"@amandanwadukwe/colorfullogger","version":"1.1.2","description":"A lightweight npm package for logging with colorful output, providing improved readability in the console. Developers can customize log levels, colors, and other settings.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"chalk":"^5.3.0"},"_id":"@amandanwadukwe/colorfullogger@1.1.2","gitHead":"a93e498a5aea43192a7e4f07127f93eb53eddf4b","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-n20X6rnPyh1lJuHuQgqtVQGLHIiEF8SRJldqu6yg0fqCLHDoLPGmWCgQvSk5DHLuaTIB1/AkrOBD43wn8MCV9w==","shasum":"58a48e1901ee9a6c5c9569287967ffb1252f53ca","tarball":"https://registry.npmjs.org/@amandanwadukwe/colorfullogger/-/colorfullogger-1.1.2.tgz","fileCount":4,"unpackedSize":4896,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVbmQ0FmGv4BbzdAh/n4W+EPPYkvegjRc6WU5XAJ8sIAIhAJR/tpyiTz1oWz4Oifmz6/p3DO9kn6FG2it8MvztqIEV"}]},"_npmUser":{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"},"directories":{},"maintainers":[{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorfullogger_1.1.2_1709488997670_0.8862869682655501"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-03T12:11:35.306Z","1.0.0":"2024-03-03T12:11:35.546Z","modified":"2024-03-03T18:03:18.233Z","1.1.0":"2024-03-03T12:33:36.685Z","1.1.1":"2024-03-03T17:26:56.776Z","1.1.2":"2024-03-03T18:03:17.802Z"},"maintainers":[{"name":"amandanwadukwe","email":"amandanwadukwe@gmail.com"}],"description":"A lightweight npm package for logging with colorful output, providing improved readability in the console. Developers can customize log levels, colors, and other settings.","keywords":[],"license":"ISC","readme":"# Colorful Logger\r\n\r\nA lightweight npm package for logging with colorful output, providing improved readability in the console. Developers can customize log levels, colors, and other settings.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @amandanwadukwe/colorfullogger\r\n```\r\n## Usage\r\n\r\n```javascript\r\nconst ColorfulLogger = require('@amandanwadukwe/colorfullogger');\r\n\r\n// Create a new ColorfulLogger instance with optional configuration\r\nconst logger = new ColorfulLogger({\r\n  logLevel: 'info', // Set the log level (info, warn, error)\r\n  colors: {\r\n    info: 'blue',    // Customize colors for each log level\r\n    warn: 'yellow',\r\n    error: 'red',\r\n  },\r\n  logFile: 'app.log',  // Log messages to a file (optional)\r\n  timestamps: true,    // Include timestamps in log messages (optional)\r\n});\r\n\r\n// Log messages with different levels\r\nlogger.info('This is an informative message.');\r\nlogger.warn('Be cautious! This is a warning.');\r\nlogger.error('Houston, we have a problem!');\r\n\r\n// Additional features\r\nlogger.setLogLevel('warn');           // Set log level dynamically\r\nlogger.enableTimestamps();            // Enable timestamps in log messages\r\nlogger.disableTimestamps();           // Disable timestamps in log messages\r\n```\r\n\r\n## Configuration\r\n\r\n`logLevel`\r\nSet the default log level. Available levels: info, warn, error. Default is info.\r\n\r\n`colors`\r\nCustomize colors for each log level. Use valid chalk colors(https://www.npmjs.com/package/chalk). Default colors are used if not provided.\r\n\r\n`logFile`\r\nSpecify a file to log messages. If provided, logs will be appended to this file.\r\n\r\n`timestamps`\r\nEnable or disable timestamps in log messages. Default is false.\r\n\r\n## License\r\nThis project is licensed under the MIT License - see the LICENSE file for details.","readmeFilename":"README.md"}