Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 464 Bytes

File metadata and controls

24 lines (18 loc) · 464 Bytes

Register provider

Register the provider inside start/app.js file.

const providers = [
  '@adonisjs/http-logger/providers/LoggerProvider'
]

That's all :)

Optional Config

There is only one config setting, that is to define the environments in which the logger should run.

You have to modify the existing config/app.js file and the following setting.

module.exports = {
  http: {
    loggerEnv: ['development', 'production']
  }
}