bug fix in log module for file and remote write