What you have pasted is not command standard output (STDOUT), but error output of the command (STDERR).
When you add "> output_file" to command, you are only redirecting STDOUT to that file, not STDERR.
If you want to output errors, to the same file as standard output you need to use
sbt clean test > log.log 2>&1
what "2>&1" does, is, it says to output error to same place as standard output results.
You can also do something like this:
sbt clean test > log.log 2>error.log
It will output STDOUT to log.log, and STDERR to second file called error.log, if you want to separate them.
See this about command redirector operators