mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Exposed new logging config options (#10678)
no issue - Exposes the new name and gelf logging options.
This commit is contained in:
parent
1ca3ba9a6e
commit
2b75d1f9df
1 changed files with 2 additions and 0 deletions
|
@ -2,12 +2,14 @@ const config = require('../../config'),
|
||||||
{logging} = require('ghost-ignition');
|
{logging} = require('ghost-ignition');
|
||||||
|
|
||||||
module.exports = logging({
|
module.exports = logging({
|
||||||
|
name: config.get('logging:name'),
|
||||||
env: config.get('env'),
|
env: config.get('env'),
|
||||||
path: config.get('logging:path') || config.getContentPath('logs'),
|
path: config.get('logging:path') || config.getContentPath('logs'),
|
||||||
domain: config.get('url'),
|
domain: config.get('url'),
|
||||||
mode: config.get('logging:mode'),
|
mode: config.get('logging:mode'),
|
||||||
level: config.get('logging:level'),
|
level: config.get('logging:level'),
|
||||||
transports: config.get('logging:transports'),
|
transports: config.get('logging:transports'),
|
||||||
|
gelf: config.get('logging:gelf'),
|
||||||
loggly: config.get('logging:loggly'),
|
loggly: config.get('logging:loggly'),
|
||||||
rotation: config.get('logging:rotation')
|
rotation: config.get('logging:rotation')
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue