(private readonly options: UiLogOptions)
| 185 | private readonly backoffMs: readonly number[]; |
| 186 | |
| 187 | constructor(private readonly options: UiLogOptions) { |
| 188 | this.now = options.now ?? (() => new Date()); |
| 189 | this.schedule = options.schedule ?? ((fn, ms) => setTimeout(fn, ms)); |
| 190 | this.cancel = options.cancel ?? ((handle) => clearTimeout(handle as ReturnType<typeof setTimeout>)); |
| 191 | this.flushMs = options.flushMs ?? UI_LOG_FLUSH_MS; |
| 192 | this.batchMax = options.batchMax ?? UI_LOG_BATCH_MAX; |
| 193 | this.bufferMax = options.bufferMax ?? UI_LOG_BUFFER_MAX; |
| 194 | this.backoffMs = options.backoffMs ?? UI_LOG_BACKOFF_MS; |
| 195 | } |
| 196 | |
| 197 | get session(): string { |
| 198 | return this.options.session; |
nothing calls this directly
no outgoing calls
no test coverage detected