Logging - abreits/amqp-ts GitHub Wiki
Amqp-ts logging
amqp.log variable
Amqp-ts uses the winston logging framework.
The winston logger instance is exposed in the log variable of the amqp-ts module. The default logger is set to only log errors to the console. You can change the logging behaviour, for example set the loglevel to 'info':
Javascript Example
var amqp = require('amqp-ts');
amqp.log.transports.console.level = 'info';
For information on how to change other log settings check the winston documentation.
environment variable
The amqp-ts log level can also be set with the AMQPTS_LOGLEVEL
environment variable.