mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
c2b0cbe07b
no issue Ghost Ignition 4.4.4 includes ElasticSearch logging, this PR enables that feature by adding the config into the shared logger used within Ghost.
17 lines
590 B
JavaScript
17 lines
590 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'),
|
|
elasticsearch: config.get('logging:elasticsearch'),
|
|
rotation: config.get('logging:rotation')
|
|
});
|