00c324fa4e
- Represents that logging is shared across all parts of Ghost at present
* moved core/server/lib/common/logging to core/shared/logging
* updated logging path for generic imports
* updated migration and schema imports of logging
* updated tests and index logging import
* 🔥 removed logging from common module
* fixed tests
16 lines
534 B
JavaScript
16 lines
534 B
JavaScript
const config = require('./config');
|
|
const {logging} = require('ghost-ignition');
|
|
|
|
module.exports = logging({
|
|
name: config.get('logging:name'),
|
|
env: config.get('env'),
|
|
path: config.get('logging:path') || config.getContentPath('logs'),
|
|
domain: config.get('url'),
|
|
mode: config.get('logging:mode'),
|
|
level: config.get('logging:level'),
|
|
transports: config.get('logging:transports'),
|
|
gelf: config.get('logging:gelf'),
|
|
loggly: config.get('logging:loggly'),
|
|
rotation: config.get('logging:rotation')
|
|
});
|