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