Logging
Octoris has built in functionality that allows you to take advantage of logging within the framework.
Using Logging
const { router } = require('octoris')
router.composeRoutes({ logger: true }, [routes])
const { router } = require('octoris')
router.composeRoutes({
logger: {
level: 'info',
file: '/path/to/file' // Will use pino.destination()
}
})
Logging From Context
Last updated
Was this helpful?