📂Sending Logs To A File
api.logger.set_up_file_handler()
By default the library will send your logs to the a file name os.log
in your current working directory . However, if you would like to change the location where your logs are saved you can use this method. The method takes in the path
argument which is the path to the location the file you would like to store your log file.
Parameters
path (str, optional): Path to file to send logs. Defaults to 'os.log'. Defaults to 'os.log'
Return
None: This method does not return anything.
How To Use:
When creating your API object it will set up the logger automatically and start to send logs of API calls made to os.logg
. When authenticating your API object this sends a call to the API and will Logger will send this to os.logg
. Therefore, if you plan to send the logs to a different location specify this before authenticating.
Example logs.
Last updated