mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
caea330647
no issue Logging is now controlled by a logginrc.js file in the root of the project - and now we can just import @tryghost/logging everywhere
16 lines
548 B
JavaScript
16 lines
548 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'),
|
|
gelf: config.get('logging:gelf'),
|
|
loggly: config.get('logging:loggly'),
|
|
elasticsearch: config.get('logging:elasticsearch'),
|
|
rotation: config.get('logging:rotation')
|
|
};
|