Change the script to print one of these every tenth of a second.

examples/generate_random_log.sh
#!/bin/bash

while true
do 
    v=$RANDOM
    if [ "$v" -gt 16000 ]
    then
        echo $v Error
    else
        echo $v Good
    fi
    sleep 0.1
done

$ ./generate_random_log.sh

Pressing Ctrl-C will stop the execution.