{"_id":"@egomobile/winston-log","_rev":"6-66b6afbf7edba2d4409ee8f3cb64b91e","name":"@egomobile/winston-log","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@egomobile/winston-log","version":"0.2.0","description":"Extension for winston logger.","main":"lib/index.js","engines":{"node":">=12.0.0"},"scripts":{"build":"del ./lib && tsc","docs:generate":"del ./docs && typedoc --out ./docs ./src","lint":"eslint -c .eslintrc.js --ext .ts src","lint:fix":"eslint --fix -c .eslintrc.js --ext .ts src","sandbox":"nodemon --watch './sandbox.ts' --exec node -r ts-node/register --inspect=0.0.0.0:9229 ./sandbox.ts"},"repository":{"type":"git","url":"git+https://github.com/egomobile/winston-log.git"},"keywords":["node","log","logger","diagnostics","console","js","ts","javascript","typescript","middleware","filter","winston","ego"],"author":{"name":"Next.e.GO Mobile SE, Aachen, Germany"},"license":"LGPL-3.0","dependencies":{"@types/node":"12.20.27"},"devDependencies":{"@egomobile/log":"0.3.0","@egomobile/tsconfig":"5.0.0","del-cli":"4.0.1","eslint":"7.32.0","eslint-config-ego":"0.15.0","nodemon":"2.0.13","ts-node":"10.2.1","tslint":"6.1.3","typedoc":"0.22.5","typescript":"4.4.3","winston":"3.3.3"},"peerDependencies":{"@egomobile/log":"0.3.0","winston":"3.3.3"},"gitHead":"fc2d19c892c06e6e907925d4998ba4bfa8f8185a","bugs":{"url":"https://github.com/egomobile/winston-log/issues"},"homepage":"https://github.com/egomobile/winston-log#readme","_id":"@egomobile/winston-log@0.2.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-zbw5RPFgu0gs/g+QgCz819hjCt6uE1gdhFJDaaWZI0FulnYyZE6JBpUlulgHhIpbLcODMB8D0Rm/Zh6nB0pQJw==","shasum":"bf39f63a04be951ad6c90c6e47804fd5cedaaf8b","tarball":"https://registry.npmjs.org/@egomobile/winston-log/-/winston-log-0.2.0.tgz","fileCount":8,"unpackedSize":19439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqjwICRA9TVsSAnZWagAATqwQAI5sH4Cqo0inqeqwQqLU\nzxGLhAzZTeueQOeM+5Gds05Zl/k9b/T9kYFQixKPS/sOYiMzX17TJN6LZCbN\nDWyHMB4jbOdmszRM6RNr2QFNd48c2PY7EARGJBKT98fF6PwLF60/inSOkaCG\n0O1I5/sijkKPtsfHQaKFmxk/NvtbLZ4qtFDfCxd6IRQXA4E3Mio1lmgOKPd/\nFnZrMbhZkgLMvh+tY+Kj9A9QpBP0wpMB5NsYc8qfqeTexiuNgcw8OZIlgwQ+\nyecaEz+CZdTLXW5QVxeKwWzszPbwqkybTP44ee5W6GMLNSU9sm3vjN/uUXFB\na87uUPVtySCbCZQF4DdXaT80s/KdANgXuj1mB+7EajeJS94Z8ZeRvORXlIE1\ndQ09L8wS/9MdVdN/s1bMZN7s8zSJOgM0BJX6lzxSgW6Hh6zc0lCxJzH1QPtm\ngqHLmTl9MZiKY0Ntez6o/zEx67nmfFwi7GgvJmyo4QZKSEdcZNMKiKfPhfvz\nQw/SdDzf55n3ikCEKWWWH2kildee5IZoAMciztvS8vQcJuMeX85Qb+pTJ/QT\nd/ELPjx82F2YKTwBJDhPnCc9qtyKDFucQG/LKdRYjSFcg5PiGpbLq8RT0GAd\nQAjM5p2Otlkkqt4hAw6DjOoe6LmJJq327gjLY0fpGEgLTPRQlOaba7cs5Uvf\naJQq\r\n=Uo4A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEhGiW9ZhyFpLzImI9M0tSVTCihCnjhagjpMG7UXbf4AiEA5GOOTBXihXZkyGIfScbk4pqqXva3tsnxWMCU5CLKflA="}]},"_npmUser":{"name":"mkloubertego","email":"marcel.kloubert@e-go-mobile.com"},"directories":{},"maintainers":[{"name":"mkloubertego","email":"marcel.kloubert@e-go-mobile.com"},{"name":"mkloubert","email":"marcel.kloubert@gmx.net"},{"name":"ekegodigital","email":"eric.kesseler@e-go-digital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-log_0.2.0_1638546439927_0.9555638460931974"},"_hasShrinkwrap":false},"0.2.1":{"name":"@egomobile/winston-log","version":"0.2.1","description":"Extension for winston logger.","main":"lib/index.js","engines":{"node":">=12.0.0"},"scripts":{"build":"del ./lib && tsc","docs:generate":"del ./docs && typedoc --out ./docs ./src","lint":"eslint -c .eslintrc.js --ext .ts src","lint:fix":"eslint --fix -c .eslintrc.js --ext .ts src","sandbox":"nodemon --watch './sandbox.ts' --exec node -r ts-node/register --inspect=0.0.0.0:9229 ./sandbox.ts"},"repository":{"type":"git","url":"git+https://github.com/egomobile/winston-log.git"},"keywords":["node","log","logger","diagnostics","console","js","ts","javascript","typescript","middleware","filter","winston","ego"],"author":{"name":"Next.e.GO Mobile SE, Aachen, Germany"},"license":"LGPL-3.0","dependencies":{"@types/node":"12.20.27","winston":"3.3.3"},"devDependencies":{"@egomobile/log":"0.3.0","@egomobile/tsconfig":"5.0.0","del-cli":"4.0.1","eslint":"7.32.0","eslint-config-ego":"0.15.0","nodemon":"2.0.13","ts-node":"10.2.1","tslint":"6.1.3","typedoc":"0.22.5","typescript":"4.4.3"},"peerDependencies":{"@egomobile/log":"0.3.0"},"gitHead":"fdf238ccf855f95716232147458370f12ee64a7c","bugs":{"url":"https://github.com/egomobile/winston-log/issues"},"homepage":"https://github.com/egomobile/winston-log#readme","_id":"@egomobile/winston-log@0.2.1","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-MWzyf19UEpvw7EjHW8rhswwW72Yr2RPXaoBa17k3KoZmS4k397bb5C+qRfmDWIxsnZDR6hJkDzqnACNsSQlAWw==","shasum":"187913db99cef2f9e6e15398fe77f60747153788","tarball":"https://registry.npmjs.org/@egomobile/winston-log/-/winston-log-0.2.1.tgz","fileCount":8,"unpackedSize":19361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrbYlCRA9TVsSAnZWagAAzEMP/jCe7TTjMmhqf0aYwHYS\navv8U7MWHPGp1LKzH8OddgMddvtzE+2+/niBhfUPINsaRRrUO9sPoVTFaC+N\nC85ZsDuOEH4eqD/NVnG/4lRiFABVtEZbLRhqClT/EL4qfDze/QXp/K0Vdv0c\nDA/sUstOWAyylHWXtgtxUD5q/o/BBaiFyfa5ag2MUA/0H3WwGx2yQFcG45Me\nghLS6Wsx+NbCxNUh6Usy6Os+84ImdtmYj7u/CoyJcw25jPka9dceJu7HxjeM\nv9lOo3DlEqK9/khwk1m5nXxopImQPYEbKZtfbwcZAfLOE/QCLcBw8Wi8CFhV\ny+OSwUfcA3W4k169t4nzz9gSlYlEdmCtBgILiSYOQ/zKecaWFvy7q+t5ua/v\nEZhDfGLCEu7h2T756O5TKYSpMb7MdTdHZnIFFRKm4SFtX8WUSeRBGF6YW7sd\n8f1yL14xJXsja3flRZgHZskKl1SLULQ+4iQrOqIuwhbdtdzCvXHSV/N0zgfR\naI9wOFFNAkBE0yrER7wVb798tsMfNxDqrPtJFP0/7JCePkZRJJxR7b7B5asF\nB5Yb+FobVQHT3eaKwq4n6AqjTU7Ftvs1ex1CtBuyhhzC7ZzkbsvcFQ2iE8Nw\ndwq8CbH7oIhcwnf/sMy2LJqZQTe7aRpYHtFXZzJTlij1YEBPUriFqNbrw2Rf\nPHJq\r\n=Pku5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdf/pJsvts9ut6g9UkSKfvF0SCJfrdqed0uGdFqmNMfAiAI8Wncr8X8lmIOvlRUWwY8fYi+iT5MtZUIJt3gjFP6Hw=="}]},"_npmUser":{"name":"mkloubertego","email":"marcel.kloubert@e-go-mobile.com"},"directories":{},"maintainers":[{"name":"mkloubertego","email":"marcel.kloubert@e-go-mobile.com"},{"name":"mkloubert","email":"marcel.kloubert@gmx.net"},{"name":"ekegodigital","email":"eric.kesseler@e-go-digital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-log_0.2.1_1638774309059_0.029573737044570336"},"_hasShrinkwrap":false},"0.3.0":{"name":"@egomobile/winston-log","version":"0.3.0","description":"Extension for winston logger.","main":"lib/index.js","engines":{"node":">=12.0.0"},"scripts":{"build":"del ./lib && tsc","docs:generate":"del ./docs && typedoc --out ./docs ./src","lint":"eslint -c .eslintrc.js --ext .ts src","lint:fix":"eslint --fix -c .eslintrc.js --ext .ts src","sandbox":"nodemon --watch './sandbox.ts' --exec node -r ts-node/register --inspect=0.0.0.0:9229 ./sandbox.ts"},"repository":{"type":"git","url":"git+https://github.com/egomobile/winston-log.git"},"keywords":["node","log","logger","diagnostics","console","js","ts","javascript","typescript","middleware","filter","winston","ego"],"author":{"name":"Next.e.GO Mobile SE, Aachen, Germany"},"license":"LGPL-3.0","dependencies":{"@types/node":"12.20.27","winston":"3.3.3"},"devDependencies":{"@egomobile/log":"0.3.0","@egomobile/tsconfig":"5.0.0","del-cli":"4.0.1","eslint":"7.32.0","eslint-config-ego":"0.15.0","nodemon":"2.0.13","ts-node":"10.2.1","tslint":"6.1.3","typedoc":"0.22.5","typescript":"4.4.3"},"peerDependencies":{"@egomobile/log":"0.3.0"},"gitHead":"f53a798af674c28e9be7671ac31848acff157054","bugs":{"url":"https://github.com/egomobile/winston-log/issues"},"homepage":"https://github.com/egomobile/winston-log#readme","_id":"@egomobile/winston-log@0.3.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-BjUO1yrkukxOA7jx3Jd0rNSKBHLOvt2pkxBE09MZ+FIdXcz1f5ueWxvTrlOJpc7v5I7L4nxcSp55JlzNpRKJXA==","shasum":"cac1aaab70d7bd79731e814956f2435322b6093f","tarball":"https://registry.npmjs.org/@egomobile/winston-log/-/winston-log-0.3.0.tgz","fileCount":8,"unpackedSize":20257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrfp8CRA9TVsSAnZWagAAk6wP/0jE57ffitUA1TIYiWBP\nYndb1JmMlI5x+vxAu5fzgDWHFJLfxmJjy/r0oSWit02vwYE4SVxYR9rIH2yW\nJmQT3olJwJXUHYpTvOkkuBFTgtSDAUS5FmHi8WgnlBdwifOQddQrrJ5QXGPj\n5q5WAusJavWYAiRYcg9J9h4CGNys6sZnMQxD1SI9LBuggNZYBCB/JHL8Mdyv\npD+E0CD5jiUmGRcAkkFhDg9tBnBsYLjg9KS3CNdjNhYSjKf7+/5kIan6/coF\nn7vu4jT4X8OBmxn41eV8bwh6htERPmyqsQ80VsSBXwJac339eN97Qi5KFNKc\ntIZpMTdAexyVTonTbz8JmUV3b6pV96BBkvymK/Mzo7QQaMcbGtdm0aRNw2ME\nQc6k2x5WMmwPNuCjhJWiy2PbKSDTejkPZseUEgI3kJNL3PsTlGbk8+TthCSW\neElby4ehJ+4PoCuVBXLLP7sJ6YWo5q3cpFWVcevBdBZwf8+NNKIQTjs7pqam\nMCLtqwiKBeVViDxvFKD1ies08OYOS+v5gBb3vv7ilV3L68uHYz5V28nYiVVL\nvxfq8P4SYL9H8aS+4hJi0c1S6FjzAbWDqOKqZxRmdFwGTejXUeOzxNFPnDel\ncyZWj8ZggKTsNmb/43SOtcIy+yEIBwlmoomwdDeuDveK1NZQOe56J7y50eeP\nY3nK\r\n=GKry\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDm1MwjGri3U7g4N9ECsApNucv+f/9FOisidabw3efhIQIgRXYXXMhtM588yhUXJLNTi98g+wwiy9lB+9DMDhpY9Ow="}]},"_npmUser":{"name":"mkloubertego","email":"marcel.kloubert@e-go-mobile.com"},"directories":{},"maintainers":[{"name":"mkloubertego","email":"marcel.kloubert@e-go-mobile.com"},{"name":"mkloubert","email":"marcel.kloubert@gmx.net"},{"name":"ekegodigital","email":"eric.kesseler@e-go-digital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-log_0.3.0_1638791804196_0.7316194805076255"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-03T15:47:19.863Z","0.2.0":"2021-12-03T15:47:20.056Z","modified":"2024-05-22T18:04:05.139Z","0.2.1":"2021-12-06T07:05:09.212Z","0.3.0":"2021-12-06T11:56:44.363Z"},"maintainers":[{"email":"eric.kesseler@e-go-mobile.com","name":"ekmobile"},{"email":"dux-developer@e-go-mobile.com","name":"egodux"},{"email":"marcel.kloubert@gmx.net","name":"mkloubert"},{"email":"eric.kesseler@e-go-digital.com","name":"ekegodigital"}],"description":"Extension for winston logger.","homepage":"https://github.com/egomobile/winston-log#readme","keywords":["node","log","logger","diagnostics","console","js","ts","javascript","typescript","middleware","filter","winston","ego"],"repository":{"type":"git","url":"git+https://github.com/egomobile/winston-log.git"},"author":{"name":"Next.e.GO Mobile SE, Aachen, Germany"},"bugs":{"url":"https://github.com/egomobile/winston-log/issues"},"license":"LGPL-3.0","readme":"[![npm](https://img.shields.io/npm/v/@egomobile/winston-log.svg)](https://www.npmjs.com/package/@egomobile/winston-log)\n[![last build](https://img.shields.io/github/workflow/status/egomobile/winston-log/Publish)](https://github.com/egomobile/winston-log/actions?query=workflow%3APublish)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/egomobile/winston-log/pulls)\n\n# @egomobile/winston-log\n\n> A middleware for [js-log](https://github.com/egomobile/js-log), which uses [winston](https://github.com/winstonjs/winston) as base logger.\n\n## Install\n\nExecute the following command from your project folder, where your `package.json` file is stored:\n\n```bash\nnpm install --save @egomobile/winston-log\n```\n\nThe following modules are defined in [peerDependencies](https://nodejs.org/uk/blog/npm/peer-dependencies/) and have to be installed manually:\n\n- [@egomobile/log](https://github.com/egomobile/js-log)\n\n## Usage\n\n```typescript\nimport log, { useWinstonLogger, winston } from \"@egomobile/winston-log\";\n\nconst { createLogger, format, transports } = winston;\n\n// create the base logger, based on winston\nconst myWinstonLogger = createLogger({\n  level: process.env.NODE_ENV === \"development\" ? \"debug\" : \"info\",\n  format: format.combine(\n    format.timestamp({\n      format: \"YYYY-MM-DD HH:mm:ss\",\n    }),\n    format.errors({ stack: true }),\n    format.splat(),\n    format.json()\n  ),\n  transports: [],\n});\n\n// console output\nmyWinstonLogger.add(\n  new transports.Console({\n    format: format.combine(format.colorize(), format.simple()),\n  })\n);\n\n// reset, before we continue\nlog.reset();\n\n// add middleware\nlog.use(useWinstonLogger(myWinstonLogger));\n\nlog(\"foo\"); // default: debug\nlog.debug(\"foo\"); // debug\nlog.error(\"foo\"); // error\nlog.warn(\"foo\"); // warning\nlog.info(\"foo\"); // information\nlog.trace(\"foo\"); // trace\n```\n\n## Documentation\n\nThe API documentation can be found [here](https://egomobile.github.io/winston-log/).\n","readmeFilename":"README.md"}