MCPcopy Create free account
hub / github.com/datalust/seq-logging / close

Method close

seq_logger.js:56–64  ·  view source on GitHub ↗

* Flush then destroy connections, close the logger, destroying timers and other resources. * @returns {Promise }

()

Source from the content-addressed store, hash-verified

54 * @returns {Promise<void>}
55 */
56 close() {
57 if (this._closed) {
58 throw new Error('The logger has already been closed.');
59 }
60
61 this._closed = true;
62 this._clearTimer();
63 return this.flush();
64 }
65
66 /**
67 * Enqueue an event in Seq format.

Callers 3

example_async.jsFile · 0.80
sayHelloFunction · 0.80

Calls 2

_clearTimerMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected