a535cfdf16
no issue Boot-time metrics are really valuable for understanding how releases affect the performance of Ghost. The new @tryghost/metrics package lets us ship these metrics to different sources using the same configuration framework as @tryghost/logging introduced.
24 lines
795 B
JavaScript
24 lines
795 B
JavaScript
const config = require('./core/shared/config');
|
|
|
|
module.exports = {
|
|
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'),
|
|
metrics: {
|
|
transports: config.get('logging:metrics:transports'),
|
|
metadata: {
|
|
// Undefined if unavailable
|
|
siteId: config.get('hostSettings:siteId'),
|
|
domain: config.get('url')
|
|
}
|
|
},
|
|
gelf: config.get('logging:gelf'),
|
|
loggly: config.get('logging:loggly'),
|
|
elasticsearch: config.get('logging:elasticsearch'),
|
|
rotation: config.get('logging:rotation')
|
|
};
|