{"_id":"log4js-node-next","_rev":"29-0fdd7e52bbc67a25b01c5715990d4697","time":{"created":"2024-01-27T15:12:36.637Z","1.0.0":"2023-11-18T21:48:56.832Z","modified":"2024-01-28T17:46:20.692Z","1.0.1":"2023-11-18T22:20:22.426Z","1.0.2":"2023-11-18T22:45:13.799Z","1.0.3":"2023-11-19T07:28:41.188Z","1.0.4":"2023-11-19T16:54:07.879Z","1.0.5":"2023-11-19T17:01:57.701Z","1.0.6":"2023-11-19T22:48:53.520Z","1.0.7":"2023-11-19T23:14:39.753Z","1.0.8":"2023-11-20T14:14:49.571Z","1.0.9":"2023-11-20T16:41:21.089Z","1.0.10":"2023-11-21T13:52:20.456Z","1.0.11":"2023-11-22T13:57:08.689Z","1.0.12":"2023-11-22T19:25:38.566Z","1.0.13":"2023-11-22T20:11:24.721Z","1.0.14":"2023-11-23T11:23:45.926Z","1.0.15":"2023-11-23T12:50:22.410Z","1.0.16":"2023-11-23T13:19:07.736Z","1.0.17":"2023-11-23T21:56:37.094Z","1.0.18":"2023-11-25T22:27:15.156Z","1.0.19":"2023-11-27T15:22:40.720Z","1.0.20":"2023-12-01T14:51:40.091Z","1.0.21":"2023-12-02T13:31:37.108Z","1.0.22":"2023-12-02T13:32:45.773Z","1.0.23":"2023-12-03T13:06:11.707Z","1.0.26":"2023-12-03T17:03:06.700Z","1.0.27":"2023-12-03T17:12:12.538Z","1.0.28":"2023-12-04T22:10:07.133Z","1.0.29":"2024-01-27T15:12:36.788Z","1.0.30":"2024-01-28T17:46:20.510Z"},"name":"log4js-node-next","dist-tags":{"latest":"1.0.30"},"versions":{"1.0.29":{"name":"log4js-node-next","version":"1.0.29","description":"Promised based and no require use one of popular logging framework (full ready for esnext/node next)","main":"./dist/index.js","types":"./dist/types/types.d.ts","scripts":{"lint":"eslint . --ext .js,.jsx,.ts","lintFix":"eslint . --ext .js,.jsx,.ts --fix","prettier":"npx prettier --write ./src/**/*.{ts,js}","prettierFix":"npx prettier --write ./src/**/*.{ts,js} --fix","build":"npm run lint && rm -rf ./dist && npx tsc","removeW":"RMDIR /S /Q dist","buildW":"npm run lint && npm run prettier && npm run removeW && npx tsc"},"contributors":[{"name":"forget@seznam.cz"}],"repository":{"type":"git","url":"git+https://github.com/forgetcz/log4js-promises.git"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@types/node":"^20.11.7","@typescript-eslint/eslint-plugin":"^6.19.1","@typescript-eslint/parser":"^6.19.1","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","typescript":"^5.3.3"},"_id":"log4js-node-next@1.0.29","gitHead":"5194569d35ba033b6a0a7b71d070892e5506b065","bugs":{"url":"https://github.com/forgetcz/log4js-promises/issues"},"homepage":"https://github.com/forgetcz/log4js-promises#readme","_nodeVersion":"16.16.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-EsE9cl9t4eEGxCp+ZedyBECLxNcUsEJ5Z9RsU+jPLXAxnKrk9sU5M1ZGGIYczSWpSveSPve+1+Q80oihmXAAMw==","shasum":"5656ad3b0af460be6fdeb7212eb179ce047f1945","tarball":"https://registry.npmjs.org/log4js-node-next/-/log4js-node-next-1.0.29.tgz","fileCount":71,"unpackedSize":124468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp/0mH9egUDciOTGT3+iHtfW/m5gjcEQg/ndWWE1purQIgV81Ir8rgpgjhuhlB2XbY3ukwp8dRAkjofxTv3Z60/20="}]},"_npmUser":{"name":"jirvra","email":"vrabecj@seznam.cz"},"directories":{},"maintainers":[{"name":"jirvra","email":"vrabecj@seznam.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log4js-node-next_1.0.29_1706368356638_0.5009151138836676"},"_hasShrinkwrap":false},"1.0.30":{"name":"log4js-node-next","version":"1.0.30","description":"Promised based and no require use one of popular logging framework (full ready for esnext/node next)","homepage":"https://github.com/forgetcz/log4js-promises","main":"./dist/index.js","types":"./dist/types/types.d.ts","scripts":{"lint":"eslint . --ext .js,.jsx,.ts","lintFix":"eslint . --ext .js,.jsx,.ts --fix","prettier":"npx prettier --write ./src/**/*.{ts,js}","prettierFix":"npx prettier --write ./src/**/*.{ts,js} --fix","build":"npm run lint && rm -rf ./dist && npx tsc","removeW":"RMDIR /S /Q dist","buildW":"npm run lint && npm run prettier && npm run removeW && npx tsc"},"repository":{"type":"git","url":"git+https://github.com/forgetcz/log4js-promises.git"},"keywords":[],"author":{"name":"forget@seznam.cz"},"license":"ISC","devDependencies":{"@types/node":"^20.11.7","@typescript-eslint/eslint-plugin":"^6.19.1","@typescript-eslint/parser":"^6.19.1","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","typescript":"^5.3.3"},"_id":"log4js-node-next@1.0.30","gitHead":"5a7d9172a4a4564fb9114a9242cc08fb451d9b60","bugs":{"url":"https://github.com/forgetcz/log4js-promises/issues"},"_nodeVersion":"16.16.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-4t+4tv6g8swaq8DsMRbbFYxywYq/53SuoSuTdvcorGw0mG6mJjUixd4SkVosPAzKKulL6re1f5/v0o8da13jfQ==","shasum":"30ccc108d7580e5b3e714a924b972d3966ad257b","tarball":"https://registry.npmjs.org/log4js-node-next/-/log4js-node-next-1.0.30.tgz","fileCount":71,"unpackedSize":129483,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBpi+2kqRyZ1np+aPf0pBmvk8TTFX56CyLhTQyoCUl8AiBZnqIfLTPD9/kvBdxQZ9dST1PTqYbXHbC3faRszahR4A=="}]},"_npmUser":{"name":"jirvra","email":"vrabecj@seznam.cz"},"directories":{},"maintainers":[{"name":"jirvra","email":"vrabecj@seznam.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log4js-node-next_1.0.30_1706463980350_0.8984607604156265"},"_hasShrinkwrap":false}},"maintainers":[{"name":"jirvra","email":"vrabecj@seznam.cz"}],"description":"Promised based and no require use one of popular logging framework (full ready for esnext/node next)","homepage":"https://github.com/forgetcz/log4js-promises","keywords":[],"repository":{"type":"git","url":"git+https://github.com/forgetcz/log4js-promises.git"},"bugs":{"url":"https://github.com/forgetcz/log4js-promises/issues"},"license":"ISC","readme":"# log4js-promises\r\n\r\nThis is a next possible conversion of the log4j framework to work with node. It is a also alternative for original template for this project [log4js](https://www.npmjs.com/package/log4js). Main differences between [log4js](https://www.npmjs.com/package/log4js) and this project is, that this is full promised based and strongly typed project (minimize of using any) full ready for esnext.\r\n\r\nThe full documentation is available [here](https://github.com/forgetcz/log4js-promises).\r\n\r\n# Internal implementation of appenders:\r\n\r\n-   console\r\n-   file\r\n-   std-err\r\n-   loglevel\r\n-   custom\r\n\r\n# Example of custom appenders:\r\n\r\n-   [log4js-appender-rest](https://www.npmjs.com/package/og4js-appender-rest)\r\n-   [log4js-appender-mongodb](https://www.npmjs.com/package/log4js-appender-mongodb)\r\n-   [log4js-appender-google-hangout](https://www.npmjs.com/package/og4js-appender-google-hangout)\r\n\r\n# Simple example\r\n\r\n```TypeScript\r\nif (require.main === module) {\r\n    configureLogger({\r\n        appenders: {\r\n            consoleAppender: {\r\n                type: eCoreAppenderType.console,\r\n                layout: {\r\n                    type: 'COLORED_CONSOLE',\r\n                    appName: 'appName',\r\n                    source: 'develop',\r\n                    static: {\r\n                        env: {\r\n                            host: 'config.http.balancerHost',\r\n                        },\r\n                    },\r\n                    stringFormat: {\r\n                        colors: true,\r\n                    },\r\n                },\r\n            },\r\n            consoleAppenderByLevel: {\r\n                type: eCoreAppenderType.logLevelFilter,\r\n                appender: 'consoleAppender',\r\n                monLevel: logLevels.DEBUG,\r\n                maxLevel: logLevels.ERROR,\r\n            },\r\n        },\r\n        categories: {\r\n            default: {\r\n                appenders: ['consoleAppenderByLevel'],\r\n            },\r\n        },\r\n    })\r\n        .then(() => {\r\n            const logger = getLogger();\r\n            logger.debug('This is a message');\r\n        })\r\n        .catch((err) => {\r\n            console.debug(err);\r\n        });\r\n}\r\n```\r\n\r\n```bash\r\n[2024-01-28T16:56:57.745] [DEBUG] [default] - \"This is a message\"\r\n```\r\n","readmeFilename":"README.md","author":{"name":"forget@seznam.cz"}}