Technical Articles
SuperEasy Log Viewer for CPI (Open-source)
This is my way of saying thanks to SAP and community for enabling APIs and empowering developers.
If you are a developer for Cloud Platform Integration, probably you have experienced checking latest trace logs again and again. It is tiring to click so many times & to see your downloads folder littered with many .gz files.
This solution is for you!
Normal workflow:
- Log-in to your tenant
- Go to Operations View
- Click System Log Files under Access Logs
- Click “download log file” button
- Extract .gz file
- Open with an editor
- You see the logs!
To see new logs: Go to step 4 or 2 and start again.
Workflow with SuperEasy Log Viewer for CPI:
- Greet your colleagues
- Drink your morning coffee
- Run SuperEasy Log Viewer from the command line
- Log-in to SuperEasy Log Viewer with your information
- Look out of the window
- You see the logs!
To see new logs: just refresh the page (Ctrl+R or F5 or Refresh button)
Installation
Installing the tool is very easy. If you are developing with Node.js you are already familiar with npm tool. If you don’t have it installed, you can install Node.js from the official website: link.This brings command line tool “npm”. Then you can run:
npm install easylog-cpi -g
That’s all it takes to install the tool.
Usage
In command line run
easylog-cpi
If you want to specify a different port run:
easylog-cpi -p 9000
Enter your information. You can use the hostname or full URL of your tenant, the tool will parse it.
When you click “Show me the logs!”. Logs will be shown in reverse order. You will see the latest line first. You will see updated logs when you refresh.
Source Code
You can find the source code on GitHub
As always, we are open to new ideas and pull requests.
Thank you for reading!
Hi Fatih,
That's a great tool! Thanks for sharing?
Kr.
Ivo
Hi Ivo,
Thanks! It is great to make someone's work easier!
Regards,
Fatih
Hello - Any idea why I am getting the below error...
Make sure you include https:// at the start of the url, does that help
Hi!
Thank you for sharing this! It's very useful!
Hi Adrian, I'm glad you found it useful. It is very motivating to see it helps other developers. Please write if you have any suggestions.
Regards,
Fatih
I get below error.Any idea why?
{"success":false}
Thanks,
Sahana
That's was really helpful Cheers