File logger working