Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Add debug logging using "debug" library #8

Open
niho opened this issue May 14, 2018 · 0 comments
Open

Add debug logging using "debug" library #8

niho opened this issue May 14, 2018 · 0 comments

Comments

@niho
Copy link
Contributor

niho commented May 14, 2018

Sometimes it can be convenient to have a deeper view of what is going on internally in the library when developing. The debug library lets you set an environment variable DEBUG=mq to see detailed debug output.

import * as createDebug from "debug";

const debug = createDebug("mq");

debug("Incoming message:", msg);
debug("Sending reply:", reply);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant