{"_id":"@cptn-tlouvet/color-logger","_rev":"22-039ab4441356d87b81ae1b457b6ce740","name":"@cptn-tlouvet/color-logger","dist-tags":{"latest":"0.6.2"},"versions":{"0.1.0":{"name":"@cptn-tlouvet/color-logger","version":"0.1.0","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.1.0","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://github.com/TLouvet/AnotherLoggerLib#readme","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"fc30c2af01e217e10bc45948294d1104d6cc261d","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.1.0.tgz","fileCount":6,"integrity":"sha512-kcnN6cDWaqp6xgI8nLuUmeXxcc7/OCffR7SRkLOQmZzu0He000FuSHnRbnaAEnPIr4H5W7u1ndP4hhm5avP19w==","signatures":[{"sig":"MEYCIQCNMmbAoPUK/AdJoQg3jxk7vuKN/vgZHYFvJ8HCRBmSzQIhAPu/yTfw5e3tHmPXvESzL1i5JYIH0DlM8EBYs/PaP6vK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9811},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"6028d75b8daec70acfeacd48cfa57acd887f061a","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.1.0_1735943824146_0.9575660093825369","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cptn-tlouvet/color-logger","version":"0.1.1","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.1.1","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://github.com/TLouvet/AnotherLoggerLib#readme","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"1a68c1cdcdf16980bf5f4af84f360829a9111301","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.1.1.tgz","fileCount":6,"integrity":"sha512-YUJehpgLhtWHvCgmgFUE3ZYVdJn7ER7JOaqjv2E9VA5khVynJLXaPEB39kZe86FiSewPEqnEEMKiOwplTfDoRA==","signatures":[{"sig":"MEUCIFE97OGOacQeEEU9VMMJs7A12HMzrBdYqqX3S49rHJ57AiEA05wbPh0tJT6o/PXOnfskJohn8Lnv0FESqHRegbfTY4E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9847},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","browser":"dist/index.mjs","gitHead":"0a96ff51f8bb13352ba30ef2dfeb7a79a137790d","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.1.1_1735946438582_0.9277071005476096","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@cptn-tlouvet/color-logger","version":"0.3.1","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.3.1","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://github.com/TLouvet/AnotherLoggerLib#readme","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"a673c5fce032d135f837cb4e4a9bfae341b0a0b9","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.3.1.tgz","fileCount":6,"integrity":"sha512-R4VyTQGnmEtjyJOOAUaZfghpvkhvXzBPoKfE8QtLDtjw7VR/SraaFOzuKyCCddA5v1h2VHPTVQCXXsIBACtuFg==","signatures":[{"sig":"MEUCIBbZcUwON9bHZVvY6Vh7xZGhkTEi+4Ys+blrWi6lvtweAiEA5CoOObeO2+CL3crQpzUh669g0OMMOnz6T7GKNFKNFlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14937},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","browser":"dist/index.mjs","gitHead":"fa3c0bf64195c8b1cd746af10fcef4485027e9e9","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.3.1_1735993357509_0.26224892782508014","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@cptn-tlouvet/color-logger","version":"0.4.1","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.4.1","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://github.com/TLouvet/AnotherLoggerLib#readme","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"1d476e24246efce8ba394e59599b8175541635dd","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.4.1.tgz","fileCount":7,"integrity":"sha512-QwSEYMrHVuc0wi2TDsruY7RRIMs4CRwi2VwLjT8wfDDwrJFkiD1rbxHzDNOgMYYRmSwt5YE6jLOsO8Jp/vMVVg==","signatures":[{"sig":"MEUCIQC0mqbRegBBtoCE8nmJ6M0iPa41d5lGyaTD1gKFdr3E3gIgMEkApPC+NJbXpzkMEzvG/rS0Y/n+OEBOLI3aELDQbkQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17038},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","browser":"dist/index.mjs","gitHead":"4937544f4ef0e177d22c99cc7815f5a2264b80f5","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.4.1_1736000945269_0.22617718069637083","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@cptn-tlouvet/color-logger","version":"0.4.2","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.4.2","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://tlouvet.github.io/AnotherLoggerLib","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"cdcc844ed1d7a558f50efe7781592cebb6a81430","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.4.2.tgz","fileCount":7,"integrity":"sha512-lgZKHzv5gn7fLKJUiSBRg48RTs0tOtwnXj4RpAqBi8z/3yE6wgtTnEGMHG9ftNmyOtsWtesNkAKLU7CBGX3rPg==","signatures":[{"sig":"MEUCIFGbz8rFQCLwDswFxlHWv2lRLeC1tCVDGF15Vfo8N4dNAiEAz9VI8WSfD6IqmM9QaWTgUYxx3eNVctIT07YNUfoGdyw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17528},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","browser":"dist/index.mjs","gitHead":"7ef2c0c04c5560eea83e0b9ac5e2504d3376439e","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.4.2_1736023283677_0.24882473595932852","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@cptn-tlouvet/color-logger","version":"0.5.2","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.5.2","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://tlouvet.github.io/AnotherLoggerLib","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"cfcc43420cfd7d75fa2bdfaada7a33b21ab88295","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.5.2.tgz","fileCount":7,"integrity":"sha512-CcMBaBFZzIk836GUfACCFk7fk3SSoHG8R25dZJKXXAuwqe177HLgSWkZMS4HDG9E2GWtomYlJET65ZP944RyXw==","signatures":[{"sig":"MEQCIAksHr2cm2EAG36/KZT1r8JZzSDFXeEN/+NCT7F/KHZtAiBYkP58wcishZLFgGHShjnySA0Jn6PgG2TuyLNFa/ZuAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18490},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","browser":"dist/index.mjs","gitHead":"593000311199f778bc4852de9333198a2cd0485a","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.5.2_1736091162355_0.4935639105840641","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@cptn-tlouvet/color-logger","version":"0.6.1","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","_id":"@cptn-tlouvet/color-logger@0.6.1","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"homepage":"https://tlouvet.github.io/AnotherLoggerLib","bugs":{"url":"https://github.com/TLouvet/AnotherLoggerLib/issues"},"dist":{"shasum":"6b64f63dd10a3cca635837782c2fa6ef7f680cb7","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.6.1.tgz","fileCount":7,"integrity":"sha512-/sQSn6oYYWdgteV1dGCjLy4jBXUO7gGXPxhwGcdMIoyboFvfQw5MJJZ4gjgzIzBPM3t9QpVQpirV3nacviZmtQ==","signatures":[{"sig":"MEUCIQCPpyFvpr9EGs81DIrPdq51gI3ADNv7+lfxLqB60d7fHAIgVVb1v2UJfaCf4e3utptDxX7OvRDb3kCLtcQHaJTgEEM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21326},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","browser":"dist/index.mjs","gitHead":"3e09c3cfd7526cc699ab0617f15c24d556d3938c","scripts":{"test":"vitest","build":"tsup src/index.ts --format esm,cjs --dts --minify","clean":"rm -rf dist","start":"node ./dist/index.js"},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"repository":{"url":"git+https://github.com/TLouvet/AnotherLoggerLib.git","type":"git"},"_npmVersion":"10.2.3","description":"Add color to your console.log (front & back)","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/color-logger_0.6.1_1736627665575_0.10953090493171702","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@cptn-tlouvet/color-logger","version":"0.6.2","description":"Add color to your console.log (front & back)","main":"./dist/index.js","types":"./dist/index.d.ts","browser":"dist/index.mjs","module":"./dist/index.mjs","keywords":["logger","console","color","javascript","node"],"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --minify","start":"node ./dist/index.js","test":"vitest","clean":"rm -rf dist"},"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.2","vitest":"^2.1.8"},"repository":{"type":"git","url":"git+https://github.com/TLouvet/ColorLogger.git"},"bugs":{"url":"https://github.com/TLouvet/ColorLogger/issues"},"homepage":"https://tlouvet.github.io/ColorLogger","_id":"@cptn-tlouvet/color-logger@0.6.2","gitHead":"7496affaf7801450a4e19f1308928720eff8c5e2","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-VPVuyo4qSRw0Mr2p5CJqvDI0rv2TofMmu6JW8pN1N63n0USI6k7GEnWNG15VYKDusdyjp1C/xK9ti7Ge6sCa4Q==","shasum":"6e3cd9582af287e003e819c3fc62fdab4e560846","tarball":"https://registry.npmjs.org/@cptn-tlouvet/color-logger/-/color-logger-0.6.2.tgz","fileCount":7,"unpackedSize":21351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDcgWu+BUTXwSmwY/D/MpskLkNGomH1z4xk5lIAO1N6WAiEApkiAl7IIDinwqtwqHGRRNEP0JT22D0V7c4FsCBEuj4g="}]},"_npmUser":{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"},"directories":{},"maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/color-logger_0.6.2_1736635362921_0.4165098522028692"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-03T22:37:04.032Z","modified":"2025-01-11T22:42:43.270Z","0.1.0":"2025-01-03T22:37:04.315Z","0.1.1":"2025-01-03T23:20:38.748Z","0.2.0":"2025-01-04T11:23:07.037Z","0.2.1":"2025-01-04T11:53:51.848Z","0.3.0":"2025-01-04T12:20:43.658Z","0.3.1":"2025-01-04T12:22:37.714Z","0.4.0":"2025-01-04T13:55:10.935Z","0.4.1":"2025-01-04T14:29:05.495Z","0.4.2":"2025-01-04T20:41:23.868Z","0.5.0":"2025-01-05T15:21:09.731Z","0.5.1":"2025-01-05T15:24:18.212Z","0.5.2":"2025-01-05T15:32:42.531Z","0.6.0":"2025-01-11T19:20:19.642Z","0.6.1":"2025-01-11T20:34:25.742Z","0.6.2":"2025-01-11T22:42:43.105Z"},"bugs":{"url":"https://github.com/TLouvet/ColorLogger/issues"},"author":{"name":"Thomas Louvet thomas@tlouvet.com"},"license":"MIT","homepage":"https://tlouvet.github.io/ColorLogger","keywords":["logger","console","color","javascript","node"],"repository":{"type":"git","url":"git+https://github.com/TLouvet/ColorLogger.git"},"description":"Add color to your console.log (front & back)","maintainers":[{"name":"cptn-tlouvet","email":"thomas@tlouvet.com"}],"readme":"# 🌈 ColorLogger: Say Goodbye to Boring `console.log(\"here\")`!\r\n\r\nAre you tired of writing **`console.log(\"here\")`** and feeling like your logs are lost in the dark abyss of your terminal? Say hello to **ColorLogger**, your new best friend for console logging! 🥳\r\n\r\nThis lightweight, easy-to-use logger will change your life (or at least your logging experience). Add **colors**, **log levels**, and a touch of **style** to your console outputs! Works like magic in both **Node.js** and the **browser**. ✨\r\n\r\nP.S: Does not replace a debugging session with the debugger.\r\n\r\n---\r\n\r\n## Why ColorLogger?\r\n\r\n- 🎨 **Colors, baby!** Make your logs pop with vibrant colors for each level.\r\n- 🚦 **Structured log levels:** Organize your logs with `info`, `success`, `warning`, `error`, and `critical`.\r\n- 🕒 **Timestamps? Yes, please!** Add a configurable timestamp to your logs.\r\n- 💼 **Front-end or back-end?** Works everywhere—Node.js or the browser.\r\n- 🎯 **Configurable:** Want to turn off a level? Customize prefixes? Disable timestamps? We've got you covered.\r\n- 🤖 **Minimalistic:** No dependencies, just pure logging goodness.\r\n\r\n---\r\n\r\n## Installation\r\n\r\nInstall via npm or yarn:\r\n\r\n```bash\r\nnpm install @cptn-tlouvet/color-logger\r\nyarn add @cptn-tlouvet/color-logger\r\n```\r\n\r\n### 📚 **Getting Started**\r\n\r\n#### Import the Logger\r\n\r\n```typescript\r\nimport { Logger } from '@cptn-tlouvet/color-logger';\r\n\r\nLogger.info(\"Here's some information!\");\r\nLogger.success('Woohoo! Everything worked!');\r\nLogger.warn('Careful now, this is a warning.');\r\nLogger.error('Uh oh, something went wrong.');\r\nLogger.critical('🚨 This is critical!');\r\nLogger.neutral('standard console.log'); // replacement for standard console.log() - v0.4+\r\n```\r\n\r\n✨ Your terminal will thank you with organized, colorful logs! 🌈\r\n\r\n---\r\n\r\n### ⚙️ Configuration\r\n\r\n#### Default Configuration\r\n\r\nHere's the default configuration out of the box:\r\n\r\n```typescript\r\nLogger.config({\r\n  showLevelPrefix: true,\r\n  active: true, // v0.5+\r\n  timestamp: {\r\n    active: true,\r\n    lang: 'en', // Locale for the timestamp\r\n  },\r\n  levels: {\r\n    info: { active: true, prefix: '[INFO]', color: '\\x1b[36m', bg: '' },\r\n    success: { active: true, prefix: '[SUCCESS]', color: '\\x1b[32m', bg: '' },\r\n    warning: { active: true, prefix: '[WARNING]', color: '\\x1b[33m', bg: '' },\r\n    error: { active: true, prefix: '[ERROR]', color: '\\x1b[31m', bg: '' },\r\n    critical: { active: true, prefix: '[CRITICAL]', color: '\\x1b[35m', bg: '' },\r\n  },\r\n});\r\n```\r\n\r\n#### Enable / Disable\r\n\r\nThe logger has two levels of activation. One is global (v0.5+), and can be toggled with functions as `Logger.enable()` and `Logger.disable()` which are equivalent to :\r\n\r\n```typescript\r\nLogger.config({ active: true });\r\nLogger.config({ active: false });\r\n```\r\n\r\nThis level can be useful in a context where you want to have some console.log in a dev environment but want to shut them completely in production.\r\n\r\nThs other level is the single loglevel disabling via the config function.\r\nUse it to disable specific logs type that you don't want to use in your projet or that you don't need at the moment.\r\n\r\n#### Customize What You Need\r\n\r\nAdjust the configuration to fit your needs:\r\n\r\n```typescript\r\nLogger.config({\r\n  levels: {\r\n    info: { active: false }, // Turn off info logs - who reads them anyway ?\r\n    error: { prefix: '[ERR]' }, // Customize prefix\r\n    warn: { color: '#FFFF00' }, // Change the color\r\n    critical: { bg: '#FF0000' }, // Show that red background to alert the user - v0.4+\r\n  },\r\n  timestamp: {\r\n    lang: 'fr', // Display timestamps in French (baguette not included)\r\n    active: true, // Enable/disable timestamps\r\n  },\r\n  showLevelPrefix: false, // Enable/disable prefix\r\n});\r\n```\r\n\r\n---\r\n\r\n### 🎨 **Color Customization**\r\n\r\nColorLogger uses ANSI escape codes for coloring your logs. You can customize the colors for each log level by modifying the `color` property in the configuration.\r\nThe initial configuration comes equiped with 2 default palettes. One with Common ANSI Color Codes, one with TrueColor codes. To ensure maximum compatibility, the\r\nCommon ANSI palette is used, but switching is easy (v0.2.1+):\r\n\r\n```typescript\r\nLogger.usePalette('trueColor');\r\n\r\n/*\r\n  trueColor: {\r\n    info: '\\x1b[38;2;0;255;255m',\r\n    success: '\\x1b[38;2;72;255;165m',\r\n    warning: '\\x1b[38;2;255;165;0m',\r\n    error: '\\x1b[38;2;244;67;54m',\r\n    critical: '\\x1b[38;2;255;0;255m',\r\n  }\r\n*/\r\n\r\n// Alternatively, to go back to the standard palette:\r\nLogger.usePalette('common');\r\n```\r\n\r\n#### Common ANSI Color Codes\r\n\r\nThese colors should work with every terminal\r\n\r\n| Color   | Code       |\r\n| ------- | ---------- |\r\n| Black   | `\\x1b[30m` |\r\n| Red     | `\\x1b[31m` |\r\n| Green   | `\\x1b[32m` |\r\n| Yellow  | `\\x1b[33m` |\r\n| Blue    | `\\x1b[34m` |\r\n| Magenta | `\\x1b[35m` |\r\n| Cyan    | `\\x1b[36m` |\r\n| White   | `\\x1b[37m` |\r\n\r\n#### TrueColor\r\n\r\nIt is possible to have more detailed colors with the TrueColor system which works as follows: `\\x1b[38;2;${red};${green};${blue}m`.\r\n\r\nFor each color, set an input between 0 and 255. For reference, here are the basic colors translated with this system:\r\n\r\n| Color   | Code                     |\r\n| ------- | ------------------------ |\r\n| Black   | `\\x1b[38;2;0;0;0m`       |\r\n| Red     | `\\x1b[38;2;255;0;0m`     |\r\n| Green   | `\\x1b[38;2;0;255;0m`     |\r\n| Yellow  | `\\x1b[38;2;255;255;0m`   |\r\n| Blue    | `\\x1b[38;2;0;0;255m`     |\r\n| Magenta | `\\x1b[38;2;255;0;255m`   |\r\n| Cyan    | `\\x1b[38;2;0;255;255m`   |\r\n| White   | `\\x1b[38;2;255;255;255m` |\r\n\r\nPlease note that depending on where you use the package (browser vs terminal), it is possible that TrueColor is not accepted (I'm looking at you old Powershell)\r\n\r\n#### Hex Color (v0.2+)\r\n\r\nLet's face it, ANSI system is probably not something we use a lot. There is also a great chance that you use this package in a frontend context or with a modern enough terminal, so you'll be looking at something that, as stated previously, supports TrueColor ANSI 24 bits. And the good news is: we can easily convert Hex to TrueColor, since we can convert Hex to RGB and then place this RGB into our ANSI TrueColor code.\r\n\r\nYou can opt to use colors in a hex format instead of an ANSI escape code. Here are the same basic colors, translated in Hex:\r\n\r\n| Color   | Code      |\r\n| ------- | --------- |\r\n| Black   | `#000000` |\r\n| Red     | `#FF0000` |\r\n| Green   | `#00FF00` |\r\n| Yellow  | `#FFFF00` |\r\n| Blue    | `#0000FF` |\r\n| Magenta | `#FF00FF` |\r\n| Cyan    | `#00FFFF` |\r\n| White   | `#FFFFFF` |\r\n\r\n#### RGB Color (v0.3+)\r\n\r\nThe TrueColor system works as follows: `\\x1b[38;2;${red};${green};${blue}m` so when we use Hex colors, we first transform them into their RGB versions and then create the\r\nTrueColor value associated.\r\n\r\nNaturally, you can bypass this step by using RGB system for your colors in the first place. The expected syntax is a number array with 3 entries corresponding to red, green and blue.\r\n\r\n```typescript\r\nLogger.config({\r\n  levels: {\r\n    info: { color: [0, 255, 255] }, // will produce cyan output\r\n  },\r\n});\r\n```\r\n\r\nFor reference, here are the inputs for the basic colors:\r\n\r\n| Color   | Code            |\r\n| ------- | --------------- |\r\n| Black   | `[0,0,0]`       |\r\n| Red     | `[255,0,0]`     |\r\n| Green   | `[0,255,0]`     |\r\n| Yellow  | `[255,255,0]`   |\r\n| Blue    | `[0,0,255]`     |\r\n| Magenta | `[255,0,255]`   |\r\n| Cyan    | `[0,255,255]`   |\r\n| White   | `[255,255,255]` |\r\n\r\n#### Background Color - v0.4+\r\n\r\nFrom v0.4, you can customize the bg property to add a background color. It works the same way as color, ANSI / Hex or RGB accepted.\r\n\r\n---\r\n\r\n### Example Output\r\n\r\nWith the default settings, your logs might look like this (and with colors, but I'm terrible with Markdown):\r\n\r\n```text\r\n[INFO] | 01/03/2025, 10:00:00 | Here's some information!\r\n[SUCCESS] | 01/03/2025, 10:00:01 | Woohoo! Everything worked!\r\n[WARNING] | 01/03/2025, 10:00:02 | Careful now, this is a warning.\r\n[ERROR] | 01/03/2025, 10:00:03 | Uh oh, something went wrong.\r\n[CRITICAL] | 01/03/2025, 10:00:04 | 🚨 This is critical!\r\n```\r\n\r\n### License\r\n\r\nMIT License. Use it, love it, share it! ❤️\r\n","readmeFilename":"Readme.md"}