Skip to Content
Technical Articles
Author's profile photo Fatih Pense

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:

  1. Log-in to your tenant
  2. Go to Operations View
  3. Click System Log Files under Access Logs
  4. Click “download log file” button
  5. Extract .gz file
  6. Open with an editor
  7. You see the logs!

To see new logs: Go to step 4 or 2 and start again.

Workflow with SuperEasy Log Viewer for CPI:

  1. Greet your colleagues
  2. Drink your morning coffee
  3. Run SuperEasy Log Viewer from the command line
  4. Log-in to SuperEasy Log Viewer with your information
  5. Look out of the window
  6. 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!

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ivo Vermeer
      Ivo Vermeer

      Hi Fatih,

       

      That's a great tool! Thanks for sharing?

      Kr.

      Ivo

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      Hi Ivo,

      Thanks! It is great to make someone's work easier!

      Regards,

      Fatih

      Author's profile photo Nagavenkata Grandhi
      Nagavenkata Grandhi

      Hello - Any idea why I am getting the below error...

      TypeError [ERR_INVALID_URL]: Invalid URL: IXXXX-tmn.hci.us2.hana.ondemand.com
          at onParseError (internal/url.js:240:17)
          at parse (internal/url.js:249:3)
          at new URL (internal/url.js:324:5)
      
      Our tenants are located in US2 region and tenant URL starts with I and 4 numbers ...like IXXXX ...
      Author's profile photo Ivo Vermeer
      Ivo Vermeer

      Make sure you include https:// at the start of the url, does that help

      Author's profile photo adrian di ruggiero
      adrian di ruggiero

      Hi!

      Thank you for sharing this! It's very useful!

       

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      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

      Author's profile photo sahana p s
      sahana p s

      I get below error.Any idea why?

       

      {"success":false}

       

      Thanks,

      Sahana

       

      Author's profile photo MANI RAJENDRAN
      MANI RAJENDRAN

      That's was really helpful Cheers