I have a simple requirement. I have a stream from a log file, and I would like to print out the text logs. However, I want to quit or close the stream when I find a specific key string or regex. "The log content didn't print out. Did I do something wrong?"
const x = logs.pipe( Stream.splitLines, Stream.tap(Console.log), Stream.takeUntil<string>(x => filter.test(x)),)
const x = logs.pipe( Stream.splitLines, Stream.tap(Console.log), Stream.takeUntil<string>(x => filter.test(x)),)