make worker able to write to its corresponding log file