unbuffered output

Output that is written out immediately, instead of being held in memory until a buffer fills.

In more detail

Programs often buffer standard output for speed, which delays log lines and can lose them if the process is killed. Twelve-factor apps write their event stream unbuffered; in Python, flush=True or the -u option does this.

Example

print(json.dumps(record), flush=True)

Related terms

Taught in

References