log file working