file needs to be in append mode.Else, logs might be overwritten in case of concurrency > number of cores