Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

SAP NetWeaver 2004s, starting in SP Stack 12, includes a few unofficial, unsupported yet useful tools that might be helpful to developers of all kinds. This is the first of three articles on these tools.

Afterwards, I may write a blog on generally how to debug a portal application from within NetWeaver Developer Studio. COMMENT THIS BLOG if you want me to spend a blog or 2 on this.

Anyone, one of the new tools, Log Watch, makes it easier to read the log. Logging is a basic AS Java function. For more information check out the following topics:

Log Watch

The idea of log watch is to have an easy-to-use log viewer that displays log messages in the portal in (almost) real-time. In addition, you can choose the locations to be displayed and the severity levels to be displayed. For example, I can select a location, a severity and click Record. All log messages from that point are stored in memory. The moment I press Stop or Refresh, I can see all the new messages in that location and with the severity level I specified.

You can also select higher-level locations -- like, com.sap.portal.navigation -- and then all messages from locations under this are displayed as well.

Some Use Cases

So when would such a tool be useful?
  • Easily access log messages without working with a 10MB defaultTrace file.
  • Easily access log messages for a specific application and severity level.
  • Change the severity level for a specific logging location. This affects the messages recorded both in the Log Watch and in the defaultTrace file.
  • Easily find log messages for an unknown location, for diagnosing problems for which you do not know the logging location. Here you can specify a higher-level location.

Accessing the Component

The component is not officially released or supported, but you can access it through the PortalAnywhere.Go interface.
  • Application: com.sap.tc~ep~common~logWatch
  • Component: LogWatchView
For more information, see Debugging Tools: Log Watch, Navigation Reporter and Navigation Debugger.  
6 Comments