Netweaver Portal Log Configuration & Viewing (Part 3)
Part one: Netweaver Portal Log Configuration & Viewing (Part 1).
Part two: Netweaver Portal Log Configuration & Viewing (Part 2).
Configuring Log Destinations
If filtering is not powerful enough for your needs, there is still a way to log into dedicated files. SAP note 733903 explains how to accomplish that.
“Please, keep in mind that in productive environment the default settings should not be changed because of performance and supportability reasons.”
“ForceSingleTraceFile” must be set to “YES” on productive systems for supportability and performance reasons. Instead of setting the property to “NO”, I recommend to make use of the “SingleTraceFile_UnrestrictedLocations” property.
This property is not supported by SAP and therefore its usage is only allowed for development and integration systems!
Now you are able to define a log destination (e.g. a file) for your log location.
File Name Pattern: ./log/foo.log
Maximum File Size: 1048576
Number of Files: 3
Now, the new destination can be assigned to our location.
Attention: A destination can only be assigned in the “Advanced mode” with the property “SingleTraceFile_UnrestrictedLocations” set accordingly.
Now, all log messages that refer to the specified location should be written into a dedicated file according to your file name pattern.
This should enable every developer to debug his/her portal applications in a practical way.
And the final question: “Where are my System.out.println messages???”
Oh boy, did you really ask that? Go Directly to JAIL! And don’t pass “Go” 😉
Great work. One of the most basic must knows.
One of the best in the recent days.