We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I get an error about reading the log4js config. Here is my setup. What seems to be the problem?
const log4js = require('log4js'); const logstashConnectFormatter = require('log4js-elasticsearch').logstashConnectFormatter; module.exports = function(app) { const ES_CONNECTION = app.get('elasticsearch'); log4js.configure({ "appenders": [ { "type": "log4js-elasticsearch", "buffersize": 1, "esclient": ES_CONNECTION, "layout": { type: 'logstash' } } ] }); var logger = log4js.getLogger('express'); var connectLogger = log4js.connectLogger(logger, { format: logstashConnectFormatter }); return function(){ app.use(connectLogger); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I get an error about reading the log4js config. Here is my setup. What seems to be the problem?
The text was updated successfully, but these errors were encountered: