IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
setup logging
editsetup logging
editEvery application needs to have some solution for logging, and there isn’t a standard in JavaScript, so instead of forcing you to rely on a specific logging module we created a bare bones logging solution and Using the default loggers will show you how to configure it. That said, our implementation of logging is very minimal and it is highly recommended that you use something like Bunyan once you move to production.