{"_id":"@adonisjs/http-logger","_rev":"5-cded515ad5f0b59f8b90711859241d8c","name":"@adonisjs/http-logger","dist-tags":{"latest":"1.0.0","legacy":"1.0.0"},"versions":{"1.0.0":{"name":"@adonisjs/http-logger","version":"1.0.0","description":"Http request logger for AdonisJs","main":"index.js","scripts":{"lint":"standard","pretest":"npm run lint","test":"japa"},"keywords":["adonisjs","adonis-framework"],"author":{"name":"virk"},"license":"MIT","devDependencies":{"@adonisjs/sink":"^1.0.13","cz-conventional-changelog":"^2.1.0","japa":"^1.0.5","japa-cli":"^1.0.1","standard":"^10.0.3","supertest":"^3.0.0"},"dependencies":{"on-finished":"^2.3.0","pretty-ms":"^3.1.0"},"standard":{"globals":["use"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/adonisjs/adonis-http-logger.git"},"bugs":{"url":"https://github.com/adonisjs/adonis-http-logger/issues"},"homepage":"https://github.com/adonisjs/adonis-http-logger#readme","gitHead":"a570673c647deebbd3dfda2bb9fcb1483c67e68b","_id":"@adonisjs/http-logger@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"virk","email":"virk@adonisjs.com"},"dist":{"integrity":"sha512-P6J2dF/Wfh9e4ip7I/6ZFFibl8eRW3WeqDl5BLDflRXEwoXP0Uhyn+gOA1Q6FB6RMPo2Mzg+YzSE+gVH5IK7UA==","shasum":"30aad617f1e114bb1c9b306dd24e0e8884e8cd80","tarball":"https://registry.npmjs.org/@adonisjs/http-logger/-/http-logger-1.0.0.tgz","fileCount":6,"unpackedSize":6391,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFFGkQ+SMB9ZwpgCVTWGxbJr4R7vNtL0tt1p+vkzEUfgIhAJgCR6947AJZLKiklpIoCknmgL/vkpzn3ADd+JMGtAzZ"}]},"maintainers":[{"name":"virk","email":"virk@adonisjs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-logger_1.0.0_1523126992991_0.9271510082286323"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-07T18:49:52.937Z","1.0.0":"2018-04-07T18:49:53.062Z","modified":"2023-05-08T04:48:29.713Z"},"maintainers":[{"email":"julien@ripouteau.com","name":"julien-r44"},{"email":"romain.lanz+npm@pm.me","name":"romainlanz"},{"email":"virk@adonisjs.com","name":"virk"}],"description":"Http request logger for AdonisJs","homepage":"https://github.com/adonisjs/adonis-http-logger#readme","keywords":["adonisjs","adonis-framework"],"repository":{"type":"git","url":"git+https://github.com/adonisjs/adonis-http-logger.git"},"author":{"name":"virk"},"bugs":{"url":"https://github.com/adonisjs/adonis-http-logger/issues"},"license":"MIT","readme":"# Adonis Http Logger\n> Add-on to log your Http requests using Adonis inbuilt logger.\n\n![](https://res.cloudinary.com/adonisjs/image/upload/q_100/v1523126720/Adonis%20Logger.png)\n\n## Setup\nStart by installing it from npm.\n\n```bash\nadonis install @adonisjs/http-logger\n\n# yarn\nadonis install @adonisjs/http-logger --yarn\n```\n\n## Register provider\nRegister the provider inside `start/app.js` file.\n\n```js\nconst providers = [\n  '@adonisjs/http-logger/providers/LoggerProvider'\n]\n```\n\nThat's all :)\n\n## Config\nThere is only one config setting, that is to define the environments in which the logger should run.\n\nYou have to modify the existing `config/app.js` file and the following setting.\n\n```js\nmodule.exports = {\n  http: {\n    loggerEnv: ['development', 'production']\n  }\n}\n```\n\nBy default, it will log in every environment.\n\n## Sane defaults\nThis module will internally make use of AdonisJs `Logger` provider, which means it will log messages using the default driver.\n\nWhen `json:true` config is set. It will log request properties as a JSON object, so that you can easily query over them.\n\nCheck the following screenshot when `json=true` and logs are sent to **Loggly**.\n\n![](http://res.cloudinary.com/adonisjs/image/upload/v1523126728/adonis-logger-loggly.png)\n","readmeFilename":"README.md"}