winston logger print logs in console and elasticsearch code example
Example: winston logger node js
const info = { level: 'info', // Level of the logging message message: 'Hey! Log something?' // Descriptive message being logged.};