Write output to log

Signed-off-by: Alevtina Glonina <alevtina@lvk.cs.msu.su>