generators/app/templates/lib/components/logging/index.js
const System = require('systemic');
const prepper = require('./prepper');
const bunyan = require('./bunyan');
const console = require('./console');
const prepperMiddleware = require('./prepper-middleware');
module.exports = new System({ name: 'logging' })
.add('transports.console', console())
.add('transports.bunyan', bunyan())
.dependsOn('pkg')
.add('transports')
.dependsOn(
{ component: 'transports.console', destination: 'console' },
{ component: 'transports.bunyan', destination: 'bunyan' },
)
.add('logger', prepper())
.dependsOn('config', 'pkg', 'transports')
.add('middleware.prepper', prepperMiddleware())
.dependsOn('app');