Skip to main content

@rbxts/rlog > RLog > ForceContextFlush

RLog.ForceContextFlush() method

Force any pending messages to be sent through the sinks, regardless of the minLogLevel.

Signature:

static ForceContextFlush(): void;

Returns:

void

Remarks

Intended to be called before the game closes, to ensure there are no missing logs.

Example

game.bindToClose(() => {
RLog.ForceContextFlush();
});