- Save the script in a file, let's say
format_logs.py
. - Make sure you have the
logs.txt
file that contains all the logs from the terminal that you have started the Product-IS. If you don't have it, create a new file and paste the logs into it. - Open a terminal or command prompt.
- Navigate to the directory where you saved the format_logs.py and logs.txt files.
- Run the script by executing the following command:
python format_logs.py
- Note: Make sure you have Python installed on your system and the python command is available in your terminal or command prompt.
- The script will read the
logs.txt
file, format the only the logsiam-cloud-diagnostics
, and print the formatted logs with colors in the terminal.