78eacb19e9
no issue - we started implementing logging and error handling in Ghost - later we outsourced both into a module - use the module now in Ghost - this commit basically just removes the logging and error implementation and uses Ignition
13 lines
438 B
JavaScript
13 lines
438 B
JavaScript
var config = require('./config'),
|
|
logging = require('ghost-ignition').logging;
|
|
|
|
module.exports = logging({
|
|
env: config.get('env'),
|
|
path: config.get('logging:path') || config.getContentPath('logs'),
|
|
domain: config.get('url').replace(/[^\w]/gi, '_'),
|
|
mode: config.get('logging:mode'),
|
|
level: config.get('logging:level'),
|
|
transports: config.get('logging:transports'),
|
|
loggly: config.get('logging:loggly')
|
|
});
|