forked from RadoslavGatev/Ghost-Azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loggingrc.js
25 lines (24 loc) · 886 Bytes
/
loggingrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const config = require('./core/shared/config');
const ghostVersion = require('@tryghost/version');
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'),
version: ghostVersion.safe
}
},
gelf: config.get('logging:gelf'),
loggly: config.get('logging:loggly'),
elasticsearch: config.get('logging:elasticsearch'),
rotation: config.get('logging:rotation')
};