write info to log