write to log.txt + current group