moved file_logger from daemon into core