writing some info to log file