{"_id":"@4alltecnologia/node-logger","_rev":"9-61c860709da32cbd58e24ccea4f2a004","name":"@4alltecnologia/node-logger","dist-tags":{"stable":"1.0.2","latest":"1.0.1"},"versions":{"1.0.1":{"name":"@4alltecnologia/node-logger","version":"1.0.1","description":"node-logger","main":"index.js","repository":{"type":"git","url":"git+https://github.com/4alltecnologia/node-logger.git"},"keywords":["4all","node","lodash","winston","morgan"],"author":{"name":"4All Tecnologia EPP"},"license":"MIT","dependencies":{"lodash":"^4.17.10","moment":"^2.22.2","morgan":"^1.9.0","winston":"^2.4.2","winston-firehose":"^1.0.8"},"devDependencies":{"eslint":"^4.19.1","eslint-config-airbnb-base":"^12.0.2","eslint-plugin-import":"^2.12.0"},"bugs":{"url":"https://github.com/4alltecnologia/node-logger/issues"},"homepage":"https://github.com/4alltecnologia/node-logger#readme","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"32bc44521d5b4c690e08fc0b6b058b362f829908","_id":"@4alltecnologia/node-logger@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"henrique502","email":"henrique.rieger@gmail.com"},"dist":{"integrity":"sha512-2D3upPfh5xUXIqNSMLTqvreXSgpUmbTuGTA39BBSOcxhqUl6Z007jh44qI4djvp9GKsiJQAWWBjO7uNJtraHEg==","shasum":"9884ff9ef3f7d23e0139ac9427e3b25f7239d70d","tarball":"https://registry.npmjs.org/@4alltecnologia/node-logger/-/node-logger-1.0.1.tgz","fileCount":9,"unpackedSize":11754,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFrkUCRA9TVsSAnZWagAAsOkP/0YOVuLje1FSeWFspUHE\ntkL/YxpaTnbPyrgu6KTjqAaF6KBscCIIThDH8YY4WQisp86teZ6LQrSy+P7h\nXBsXlZQrxzzhxUJPBKyWou4XogYaA06j/klWcClK7SiHfswxtgWqNyMXdalb\n3HPYvdBpweTSmWk9zL0OjRkX5xGMT7N6jLUC4dKl2MiUqXD0Sw7u6VBnPxGF\ngG/Jsl5nxTYh/7dWFxM/WBed0JXfc0NyabLtUdSEkBKO6pXnr98ATnlpEbeu\nLFz7WWtd9KBgc14NObnLTLC1RkYUN/BQ0Wz+lm6HsO2suMPkv+1TgttxWENb\ntT3JeASOhQq0lqK75ltFqEyKwawIaydUmnaXMK6p+7iC/T1hDuHVI2yriAVv\nY/nwmKrvduN8HUwwXtwCA6HPiw5zhYhU1lN4Fe169+cx1FNEIf42H0DhJYEQ\nvErRCDHNW7WvWmHHsFRYnfT0a02+QPqlG2KPrptoWZnA5qZ5NW6zaYJJhvLV\nS6wwXTMMhxw5ebetIPshgr15WOj7oS8TgOKtfGOCSnuCsY84Tw5xOeRNqLU4\ni1nytoEkSziHsaqYGTSaBGB2FzJ8fik5Yylrst6k7izmoS658y4OCvTIPS24\nY8uQAIrtz4vNgUgQ1qMQjhlm47XDKagzhHu3lf2KdV6Qovuffq+ngX7xrg0k\nceND\r\n=G7go\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLCc4fl05+AFuntIyrMfi5BrldVuJTGJrHRZGMP4K8dwIhAKGRbo2XkBECHT3i04cA0I9HcauGZ3QfNDRnBC0UsmYy"}]},"maintainers":[{"name":"bgfernandes","email":"bruno.gabriel.fernandes@gmail.com"},{"name":"fouralltecnologia","email":"contato@4all.com"},{"name":"henrique502","email":"henrique.rieger@gmail.com"},{"name":"ulymarins","email":"marins.ulysses@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-logger_1.0.1_1528215827229_0.16314351801139182"},"_hasShrinkwrap":false},"1.0.2":{"name":"@4alltecnologia/node-logger","version":"1.0.2","description":"node-logger","main":"index.js","repository":{"type":"git","url":"git+https://github.com/4alltecnologia/node-logger.git"},"keywords":["4all","node","lodash","winston","morgan"],"author":{"name":"4All Tecnologia EPP"},"license":"MIT","dependencies":{"lodash":"^4.17.10","moment":"^2.22.2","morgan":"^1.9.0","winston":"^2.4.2","winston-firehose":"^1.0.8"},"devDependencies":{"eslint":"^4.19.1","eslint-config-airbnb-base":"^12.0.2","eslint-plugin-import":"^2.12.0"},"bugs":{"url":"https://github.com/4alltecnologia/node-logger/issues"},"homepage":"https://github.com/4alltecnologia/node-logger#readme","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"readme":"# Logger Node 1.0.2\n\n## Usage\n\n```ssh\nnpm install @4alltecnologia/node-logger\n```\n\n### Environment variables\n\n```text\n# firehose\nAWS_ACCESS_KEY_ID=\"userId\"\nAWS_SECRET_ACCESS_KEY=\"userKey\"\nAWS_REGION=\"us-east-1\"\n\n# stream\nLOGGER_STREAM_TYPE=\"console\" # or firehose\nLOGGER_STREAM_NAME=\"firehose_stream_name\"\n\n# Skip logger\nLOGGER_SKIP_STATUS=\"404\"\nLOGGER_SKIP_KEYS=\"authorization\"\nLOGGER_SKIP_METHODS=\"GET|OPTIONS\"\nLOGGER_SKIP_PATHS=\"|/|/status|/favicon.ico\"\n```\n\n### Express:\n\n```javascript\nrequire('dotenv').config();\n\nconst express = require('express');\nconst { winston, morgan, error, knex } = require('@4alltecnologia/node-logger/config');\nconst Logger = require('@4alltecnologia/node-logger');\nconst compression = require('compression');\n\n/* Express initialization */\nconst app = express();\nconst knex = require('./config/db');\nknex(knex);\n\napp.use(morgan());\napp.use(compression()); // compression middleware needs to be after the morgan\n\n// custom middleware\n\n// routes\n\n// log uncaught error\napp.use(error);\n\n(async () => {\n  winston();\n\n  app.listen(process.env.PORT, () => {\n    Logger.info('Hello!!!');\n  });\n})();\n```\n\n```javascript\nconst { winston } = require('logger/config');\nconst Logger = require('logger');\n\n// You can set your transport if you needed\nwinston([transport1, transport2, ...]);\n\nLogger.emerg('Hello!!!');\nLogger.alert('Hello!!!');\nLogger.crit('Hello!!!');\nLogger.error('Hello!!!');\nLogger.warning('Hello!!!');\nLogger.notice('Hello!!!');\nLogger.info('Hello!!!');\n```\n\n## TODO\n\n* Unit Tests\n* File transport\n* Database transport?\n","readmeFilename":"README.md","gitHead":"3c608a48faf3d5487420403d9ba6720c0fc713ba","_id":"@4alltecnologia/node-logger@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"henrique502","email":"henrique.rieger@gmail.com"},"dist":{"integrity":"sha512-5CDPLz4Z4aciunW0FUfr2NZB9q0DTQ/60966ksnvxHwG1vUMsXBbzfe4hXJ9Lr6zWBTtRe6eLiYuwRUgfHy0iA==","shasum":"4a6d32c957a604e6d4ca6189328022b9d672acc6","tarball":"https://registry.npmjs.org/@4alltecnologia/node-logger/-/node-logger-1.0.2.tgz","fileCount":9,"unpackedSize":11848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFrx8CRA9TVsSAnZWagAAcawP/0jpIx1clXRQg8X/P3xE\nvaT8wt/d7BblN7kmspAGBBddHzlDDP5a7b56m+A3vsY1Ti9ahYxRjeKEbYLC\n5bZT6+j0rpKNNxZSK83cWZtxiTtmHWVBe2op2shxiYDdnCK8i8ulKKlBWAjS\nXGZtlSXFeKp4t0iAuFIvoGtRte00vEpGKsfoYVS5ZzD2RHtVVIAIjZI+OKr0\nLlcMyd7u7bisb8GaOV/X4Sq6jKKXFZoOmTORSopLIKvzY6eO3q4jwF9sH0hq\nM5hfE2ZKEjdg8g4MHoakopCf79INTL+D7XdbEbLTIj+RTAPWzAZzHPmck5i+\nwAdF/ZlQKriQLGU30RWtjJnyaY1ZTJitEKIbooFqJErPIKptjPmgiIpHRPbR\nJ5ayWfp1Avi3SY7zQmldEupg6Zjx04PBDn9jh8KXOv46RR+du75E/zoPjRE1\n2dbFzBN1WjiMN0TZyHeRCAzBon8TxkPAjjSlytaZphTPlHjPd2ulbscxgpZt\n+aGBb615c20+bUCImCiwxaC8VATaTrJgnc6VTHTbDleoFaoltNAAqiNmKOPd\nNZePB5UGEEnKagz6MaFZpiyuHA12/z7YnD1fix4dSEUJz3DJrGpHkqJSsgK0\nXPNYlQOiDkI2XJdd5Ps0aOgr7ekBNK8XA4qF9mvJ8DqVm4mWfKXIr49Y+d9q\ng9B6\r\n=zew/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4OT46kBPTj/Cn4YYtU6Z1UweDKCwvsYcedwCmaPZwRAiAUWBW955Q4kZk++C9nLkRKHNNWY6OrVfhi17TrMvUEWQ=="}]},"maintainers":[{"name":"bgfernandes","email":"bruno.gabriel.fernandes@gmail.com"},{"name":"fouralltecnologia","email":"contato@4all.com"},{"name":"henrique502","email":"henrique.rieger@gmail.com"},{"name":"ulymarins","email":"marins.ulysses@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-logger_1.0.2_1528216700000_0.2962757850372095"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-05T16:23:47.070Z","1.0.1":"2018-06-05T16:23:47.298Z","modified":"2022-04-04T10:46:10.365Z","1.0.2":"2018-06-05T16:38:20.061Z"},"maintainers":[{"email":"henrique.rieger@gmail.com","name":"henrique502"}],"description":"node-logger","homepage":"https://github.com/4alltecnologia/node-logger#readme","keywords":["4all","node","lodash","winston","morgan"],"repository":{"type":"git","url":"git+https://github.com/4alltecnologia/node-logger.git"},"author":{"name":"4All Tecnologia EPP"},"bugs":{"url":"https://github.com/4alltecnologia/node-logger/issues"},"license":"MIT","readme":"","readmeFilename":""}