/usr/bin/log should support a buffer-size option when streaming

Originator:chris.bracken
Number:rdar://34420207 Date Originated:2017-09-13
Status:Duplicate: 27382661 Resolved:
Product:macOS + SDK Product Version:10.12.6
Classification: Reproducible:always
 
When run non-interactively '/usr/bin/log stream' appears to buffer its output in 4kB chunks. When run interactively, it appears not to.

It would be hugely helpful if it supported a configurable buffer size via a --buffer flag, and/or a configurable timeout after which to flush logs if no new input is received.

In particular this would help for uses where /usr/bin/log is used non-interactively (e.g. in a pipeline) with a fairly tight `--predicate` expression, or with relatively low volume/frequency log output.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!