emailjs / emailjs-imap-client

Low-level JS IMAP client for all your IMAP needs.
MIT License
557 stars 123 forks source link

Add configurable log level. #153

Closed norim13 closed 6 years ago

norim13 commented 7 years ago

It really helps to be able to configure the Log Level... The default value prints too much stuff, and since the log levels are defined in the code, I belive it makes sense for it to be configurable.

Usage: var imapClient = new ImapClient('impa.host.com', 993, {logLevel: ImapClient.LOG_LEVEL_ERROR});

Note: the usage is incorrect in my commit message. Please disregard it, and check the one above).

felixhammerl commented 6 years ago

This was easier than rebasing the commit: https://github.com/emailjs/emailjs-imap-client/commit/a42e5bd734ed39e2a3afcc83f60f8bfcb1b30435

Attributed you in the commit.