arglog put arguments to logfile

print arguments to a logfile
add fflush to make concurrent writes less painful

fflush added