datalust / pino-seq

A stream to send Pino events to Seq
Apache License 2.0
11 stars 10 forks source link

index.d.ts: Expose the flush method on the return type #36

Open richard-stafflink opened 7 months ago

richard-stafflink commented 7 months ago

AWS lambdas will halt/freeze the Node process as soon as a result is returned. So, in order to not lose log entries, the lambda should flush logs just before returning a result

richard-stafflink commented 7 months ago

Related to this PR: https://github.com/datalust/pino-seq/pull/33

liammclennan commented 7 months ago

@richard-stafflink would something like https://github.com/datalust/pino-seq/pull/37 get the job done?

richard-stafflink commented 7 months ago

@richard-stafflink would something like #37 get the job done?

Yes, thanks @liammclennan

liammclennan commented 7 months ago

@richard-stafflink #37 is merged and published as pino-seq 1.2.0.