mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
2b75d1f9df
no issue - Exposes the new name and gelf logging options.
16 lines
536 B
JavaScript
16 lines
536 B
JavaScript
const config = require('../../config'),
|
|
{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')
|
|
});
|