Sobes.tech
Junior — Senior

Implement an analytics client with console output and file logging

livecode

Task condition

Your task is to enhance the implementation of AnalyticsClient so that when report(_:) is called, the event is logged to the console, and additionally, when working with screen 2, it is also saved to a file. You need to consider where to store the file path, how to open/close it, and ensure thread safety if the client is used from different threads.