write java cmd output to log