{"_id":"@thymelab/logfx","_rev":"4-74354bc716c1d3e1420f1c4d6d6349d9","name":"@thymelab/logfx","dist-tags":{"latest":"2.15.6"},"versions":{"2.15.3":{"name":"@thymelab/logfx","version":"2.15.3","keywords":["console","logger","reporter","levels","tags","node","fancy"],"author":{"url":"https://github.com/thymelab","name":"thymelab","email":"thymelab@pm.me"},"license":"MIT","_id":"@thymelab/logfx@2.15.3","maintainers":[{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"}],"homepage":"https://github.com/thymelab/logfx#readme","bugs":{"url":"https://github.com/thymelab/logfx/issues"},"dist":{"shasum":"2432c545f4ce770bdaaa9d51d2f8798d9506c7e7","tarball":"https://registry.npmjs.org/@thymelab/logfx/-/logfx-2.15.3.tgz","fileCount":8,"integrity":"sha512-Vx9fQ7QrX4wg9Cdax5BhiHCTaPUxVTysmdhbXSQhxqfz7zk+GvDOEle7DsjRUOyNpfXGyI5/JLyn4K4E08ynpQ==","signatures":[{"sig":"MEUCIDaQwNpK/AcximLYvw0h79jeLthWiFhCWVhmGixuaAvoAiEAonIBZGxEDgJE10+5bsj7m61BdD8pPOvp9WIEQvsmib0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95340},"main":"dist/logfx.js","browser":"dist/logfx.browser.js","engines":{"node":">=14"},"gitHead":"6d215b2dc531069962956fcaf58584c508673899","scripts":{"postinstall":"node dist/bootstrap.js"},"typings":"types/logfx.d.ts","_npmUser":{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"},"repository":{"url":"git+https://github.com/thymelab/logfx.git","type":"git"},"_npmVersion":"11.11.0","description":"Elegant console logger for Node.js — levels, tags, pluggable reporters, with a browser bundle for SSR/SPA symmetry","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/logfx_2.15.3_1780558400273_0.04671488532649737","host":"s3://npm-registry-packages-npm-production"}},"2.15.4":{"name":"@thymelab/logfx","version":"2.15.4","keywords":["console","logger","reporter","levels","tags","node","fancy"],"author":{"url":"https://github.com/thymelab","name":"thymelab","email":"thymelab@pm.me"},"license":"MIT","_id":"@thymelab/logfx@2.15.4","maintainers":[{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"}],"homepage":"https://github.com/unjs/consola#readme","bugs":{"url":"https://github.com/unjs/consola/issues"},"dist":{"shasum":"cacb20a85e4b0530a2d62e425c68a4efb2fbccd1","tarball":"https://registry.npmjs.org/@thymelab/logfx/-/logfx-2.15.4.tgz","fileCount":8,"integrity":"sha512-ZjXhztcULWFGgIGMKOpFsItxx0uZe8Ibe8z9mdezHexuv8eG93eQHUKFbZ2mJyBgzMIDiOZ9S6DnbMXPD4NmVA==","signatures":[{"sig":"MEUCIQCPyw+TVDcSZyLKSrwou3KdDJHJpSlklAKEwy2jXl6lGgIgdB9A1bL5lCC0ciy6ozvcCEwS2Z8E/Yaf3sbj+rg5SIc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95338},"main":"dist/logfx.js","browser":"dist/logfx.browser.js","engines":{"node":">=14"},"gitHead":"e9b6dadfe6a53badf7f4000f0aa99d1271bd2a2d","scripts":{"postinstall":"node dist/bootstrap.js"},"typings":"types/logfx.d.ts","_npmUser":{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"},"repository":{"url":"git+https://github.com/unjs/consola.git","type":"git"},"_npmVersion":"11.11.0","description":"Elegant console logger for Node.js — levels, tags, pluggable reporters, with a browser bundle for SSR/SPA symmetry","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/logfx_2.15.4_1781420317428_0.9494797798022179","host":"s3://npm-registry-packages-npm-production"}},"2.15.5":{"name":"@thymelab/logfx","version":"2.15.5","keywords":["console","logger","reporter","levels","tags","node","fancy"],"author":{"url":"https://github.com/thymelab","name":"thymelab","email":"thymelab@pm.me"},"license":"MIT","_id":"@thymelab/logfx@2.15.5","maintainers":[{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"}],"homepage":"https://github.com/unjs/consola#readme","bugs":{"url":"https://github.com/unjs/consola/issues"},"dist":{"shasum":"dddc854ac2f76d750b8734006e75f5c02f198afb","tarball":"https://registry.npmjs.org/@thymelab/logfx/-/logfx-2.15.5.tgz","fileCount":8,"integrity":"sha512-xiPcVdXOtGH+wf5GJ/w/zo1uibcaElK0Q3kksoWow8Ir3glgzG2Q9jF3nuKmhIzG/I8jCx+3qfEtG3BEBpPuLg==","signatures":[{"sig":"MEUCIAyZ37fk7MykEhrnJyXNuzfGEGflZhYMJ1lriYLkC9tAAiEAukYQUlY8FrqRhZ+7bpIqcBJlXXVyFf1pclnRbmqteFg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":377027},"main":"dist/logfx.js","browser":"dist/logfx.browser.js","engines":{"node":">=14"},"gitHead":"0bd931d48350850f4876dbe92d31e635e9195eac","scripts":{"postinstall":"node dist/bootstrap.js"},"typings":"types/logfx.d.ts","_npmUser":{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"},"repository":{"url":"git+https://github.com/unjs/consola.git","type":"git"},"_npmVersion":"11.11.0","description":"Elegant console logger for Node.js — levels, tags, pluggable reporters, with a browser bundle for SSR/SPA symmetry","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/logfx_2.15.5_1781765298937_0.5111294975861269","host":"s3://npm-registry-packages-npm-production"}},"2.15.6":{"name":"@thymelab/logfx","version":"2.15.6","description":"Elegant console logger for Node.js — levels, tags, pluggable reporters, with a browser bundle for SSR/SPA symmetry","license":"MIT","author":{"name":"thymelab","email":"thymelab@pm.me","url":"https://github.com/thymelab"},"repository":{"type":"git","url":"git+https://github.com/unjs/consola.git"},"bugs":{"url":"https://github.com/unjs/consola/issues"},"homepage":"https://github.com/unjs/consola#readme","engines":{"node":">=14"},"main":"dist/logfx.js","browser":"dist/logfx.browser.js","typings":"types/logfx.d.ts","sideEffects":false,"keywords":["console","logger","reporter","levels","tags","node","fancy"],"gitHead":"8cacb1aecb43450efcf530382571b51afe64cd99","_id":"@thymelab/logfx@2.15.6","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-xmJZp4AIMO1EzB/zPtx0/uPpkAJfyK8a7kIJvyimZBN09xQggP+oqwmM28EiIHK5FKbcFIf0ObVJyFmDyHd2pw==","shasum":"f5c9d2bd0e0308c5e300d088b760073ab0edb26c","tarball":"https://registry.npmjs.org/@thymelab/logfx/-/logfx-2.15.6.tgz","fileCount":8,"unpackedSize":376963,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICbC4lfkSAnlHJrLLGWRfWI3vjcS6BSjafmNN17mzPLNAiAJXns5hqOkmFI1pETELU15aFib2uWvGUKiQ2mCkMEksA=="}]},"_npmUser":{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"},"directories":{},"maintainers":[{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logfx_2.15.6_1781770097563_0.7785239671227973"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-04T07:33:20.132Z","modified":"2026-06-18T08:08:17.853Z","2.15.3":"2026-06-04T07:33:20.420Z","2.15.4":"2026-06-14T06:58:37.560Z","2.15.5":"2026-06-18T06:48:19.085Z","2.15.6":"2026-06-18T08:08:17.744Z"},"bugs":{"url":"https://github.com/unjs/consola/issues"},"author":{"name":"thymelab","email":"thymelab@pm.me","url":"https://github.com/thymelab"},"license":"MIT","homepage":"https://github.com/unjs/consola#readme","keywords":["console","logger","reporter","levels","tags","node","fancy"],"repository":{"type":"git","url":"git+https://github.com/unjs/consola.git"},"description":"Elegant console logger for Node.js — levels, tags, pluggable reporters, with a browser bundle for SSR/SPA symmetry","maintainers":[{"name":"thymelab","email":"thymelab-v0et8w@wshu.net"}],"readme":"# @thymelab/logfx\n\nElegant console logger for Node.js. Levels, tags, pluggable reporters, sane defaults. A browser bundle ships alongside so the same import works under SSR or in a Vite/webpack frontend bundle.\n\n## Install\n\n```sh\nnpm i @thymelab/logfx\n```\n\n## Usage\n\n```js\nimport logfx from '@thymelab/logfx';\n\nlogfx.info('booting up');\nlogfx.success('migration applied');\nlogfx.warn('cache miss', { key: 'feed:eth-usd' });\nlogfx.error('rpc failed', new Error('timeout'));\n```\n\n## Methods\n\n```ts\nlogfx.fatal(...args)\nlogfx.error(...args)\nlogfx.warn(...args)\nlogfx.log(...args)\nlogfx.info(...args)\nlogfx.start(...args)\nlogfx.success(...args)\nlogfx.ready(...args)\nlogfx.debug(...args)\nlogfx.trace(...args)\n```\n\nEach method takes any number of arguments — strings, objects, errors — and forwards them to the active reporters.\n\n## Tagged child loggers\n\n```js\nconst apiLog = logfx.withTag('api');\napiLog.info('GET /healthz'); // [api] GET /healthz\n```\n\n## Levels\n\n| level | numeric | methods enabled |\n|---|---|---|\n| silent | -Infinity | — |\n| fatal | 0 | fatal, error |\n| error | 0 | fatal, error |\n| warn | 1 | …, warn |\n| log | 2 | …, log |\n| info | 3 | …, info, success, ready, start |\n| debug | 4 | …, debug |\n| trace | 5 | …, trace |\n| verbose | Infinity | everything |\n\nSet globally:\n\n```js\nlogfx.level = 4; // debug and below\n```\n\n## Reporters\n\nDefault reporter: `fancy` in TTY environments, `basic` otherwise. Replace or stack:\n\n```js\nimport logfx, { JSONReporter } from '@thymelab/logfx';\n\nlogfx.setReporters([new JSONReporter()]);\n```\n\n## Browser bundle (optional)\n\nWhen picked up by a frontend bundler via the `browser` field, `logfx` swaps the Node reporters for a `console.log` styled reporter that falls back gracefully where the DevTools console does not support CSS in formatters.\n\n## Mocking in tests\n\n```js\nlogfx.mockTypes(() => jest.fn());\n```\n\nThen `expect(logfx.info).toHaveBeenCalledWith(...)`.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}