(entry: UiLogEntry)
| 358 | } |
| 359 | |
| 360 | private push(entry: UiLogEntry): void { |
| 361 | if (this.queue.length >= this.bufferMax) { |
| 362 | this.queue.shift(); |
| 363 | this.dropped += 1; |
| 364 | this.droppedSinceFlush += 1; |
| 365 | } |
| 366 | this.pages.set(entry, this.page); |
| 367 | this.queue.push(entry); |
| 368 | } |
| 369 | |
| 370 | private pageOf(entry: UiLogEntry | undefined): string { |
| 371 | return (entry === undefined ? undefined : this.pages.get(entry)) ?? this.options.page; |
no outgoing calls