ctx.log
Writes to the app's log.
ctx.log.debug('cart', ctx.data.cart)
ctx.log.info('order placed')
ctx.log.warn('stock is low')
ctx.log.error('payment failed')
debug only shows in dev mode (--dev) or with debug: true in +config.js. See Debugging.