As far as I know, this is not possible using only SBT parameters. However, this question provides a good solution. I will rephrase the answer for your specific case. All of the following assumes Unix, but it can be adapted for the Windows environment (and simply if you use Cygwin).
First you need a script called for the predate.sh example, which contains:
#!/bin/bash while read line ; do echo "$(date): ${line}" done
The date command can be customized to suit your needs. Then you must make this script executable using chmod u+x predate.sh .
Finally, run your initial command and submit standard output to our new script:
sbt --debug update | ./predate.sh > sbtupdate.log
Please read the related question, it contains interesting other answers.
Lomig megard
source share