Ghost/core/server/logging.js
Katharina Irrgang 78eacb19e9 🛠 use Ignition for logging/errors (#7869)
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
2017-01-23 11:04:01 +00:00

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')
});