If I click on a step when the workflow is in running state, it is NOT showing logs by expanding the current step and getting stuck. I am using setf-hosted runner. After job completion I am able to view all logs.
It could happen, it depends on how your process handle the log, it could buffer the strings internally and writes the output in bigger chunks.
For example a ruby process, the log output could be not synced to STDOUT in time, you can add
STDOUT.sync = true in the script to aviod this.