I’m using ircd.js to run a tiny IRC server on localhost, as part of the (mocha) integration tests for an IRC client.
It does the job brilliantly, except the winston logging output is output to the console, while my test is running, and as far as I could tell, there's no way to turn it off:
So I forked ircd.js to expose the winston object, letting me remove the console logger in my tests:
var ircd = require("ircdjs");
ircd.winston.remove(ircd.winston.transports.Console);
var server = new ircd.Server();
I figured this might be useful to other people in a similar position to me, so here's a pull request, for your consideration.
I’m using ircd.js to run a tiny IRC server on localhost, as part of the (mocha) integration tests for an IRC client.
It does the job brilliantly, except the
winston
logging output is output to the console, while my test is running, and as far as I could tell, there's no way to turn it off:So I forked ircd.js to expose the
winston
object, letting me remove the console logger in my tests:I figured this might be useful to other people in a similar position to me, so here's a pull request, for your consideration.
Thanks!