Get real-time log stream as an RxJS Observable
Returns only live logs (no replay buffer). Use RxJS operators to filter, throttle, buffer, or otherwise transform the stream.
Registry name of the memory store
Observable that emits log entries in real-time
// Subscribe to all logsconst logs$ = getMemoryLogStream('api')logs$.subscribe(log => console.log(log)) Copy
// Subscribe to all logsconst logs$ = getMemoryLogStream('api')logs$.subscribe(log => console.log(log))
// Filter by level using helper operatorimport { filterByLevel } from './transports/memory'logs$.pipe( filterByLevel('error')).subscribe(log => console.error(log)) Copy
// Filter by level using helper operatorimport { filterByLevel } from './transports/memory'logs$.pipe( filterByLevel('error')).subscribe(log => console.error(log))
// Built-in backpressure with throttlingimport { withBackpressure } from './transports/memory'logs$.pipe( withBackpressure({ throttleMs: 1000 })).subscribe(log => sendToSlack(log)) Copy
// Built-in backpressure with throttlingimport { withBackpressure } from './transports/memory'logs$.pipe( withBackpressure({ throttleMs: 1000 })).subscribe(log => sendToSlack(log))
Get real-time log stream as an RxJS Observable
Returns only live logs (no replay buffer). Use RxJS operators to filter, throttle, buffer, or otherwise transform the stream.