2017-12-14 03:01:23 +01:00
|
|
|
var config = require('../../config'),
|
2017-01-23 12:04:01 +01:00
|
|
|
logging = require('ghost-ignition').logging;
|
|
|
|
|
|
|
|
module.exports = logging({
|
|
|
|
env: config.get('env'),
|
|
|
|
path: config.get('logging:path') || config.getContentPath('logs'),
|
2017-02-17 15:29:25 +01:00
|
|
|
domain: config.get('url'),
|
2017-01-23 12:04:01 +01:00
|
|
|
mode: config.get('logging:mode'),
|
|
|
|
level: config.get('logging:level'),
|
|
|
|
transports: config.get('logging:transports'),
|
2017-02-17 18:24:14 +01:00
|
|
|
loggly: config.get('logging:loggly'),
|
|
|
|
rotation: config.get('logging:rotation')
|
2017-01-23 12:04:01 +01:00
|
|
|
});
|