In-game tools · function
appendLog
Append, collapsing an exact repeat of the newest entry into its count.
Explained in In-game tools.
function appendLog(log: LogRing, severity: Severity, text: string, file?: string, line?: number): voidimport { appendLog } from '@driftengine/tools';Parameters
| Parameter | Type | Description |
|---|---|---|
log | LogRing | |
severity | Severity | |
text | string | |
file? | string | |
line? | number |
In depth
Against the newest only, and not against everything in the window. Collapsing against any earlier entry would reorder the log — the repeat would appear where the first one was, out of sequence with whatever happened in between, and the sequence is what a log is for.