MCPcopy
hub / github.com/winstonjs/winston / close

Method close

lib/winston/logger.js:435–441  ·  view source on GitHub ↗

* Cleans up resources (streams, event listeners) for all transports * associated with this instance (if necessary). * @returns {Logger} - TODO: add return description.

()

Source from the content-addressed store, hash-verified

433 * @returns {Logger} - TODO: add return description.
434 */
435 close() {
436 this.exceptions.unhandle();
437 this.rejections.unhandle();
438 this.clear();
439 this.emit('close');
440 return this;
441 }
442
443 /**
444 * Sets the `target` levels specified on this instance.

Callers 5

tail-file.jsFile · 0.45
container.test.jsFile · 0.45
http.test.jsFile · 0.45

Calls 2

clearMethod · 0.95
unhandleMethod · 0.45

Tested by

no test coverage detected