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

Class Logger

index.d.ts:30–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30export declare class Logger {
31 constructor (config: SeqLoggerConfig)
32 /**
33 * Enqueue an event in Seq format.
34 * @param {*} event
35 * @returns {void}
36 */
37 emit (event: SeqEvent): void
38 /**
39 * Flush then destroy connections, close the logger, destroying timers and other resources.
40 * @returns {Promise<void>}
41 */
42 close (): Promise<void>
43 /**
44 * Flush events queued at the time of the call, and wait for pending writes to complete regardless of configured batching/timers.
45 * @returns {Promise<boolean}
46 */
47 flush (): Promise<boolean>
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected