Skip to Content
author's profile photo Former Member
Former Member

Logging on NW04


I'm trying to implement logging a Netweaver application.

The application must be backwards compatible with SP2. The SP2

logging works fine, but i can't get the Netweaver logging to

work even though.

Following are the steps i took (got this from

NetWeaver version:

Stack 10

Configuration of the Portal through visual admin:


1. Navigate to Server->Services->LogConfigurator

2. Click the 'to Advance mode' tab

3. Click the 'Destinations' tab and clicked 'new' for a new Destination

entered the following data:

Name: FrameworkLog

Type: FileLog

Pattern: ./log/framework.log

Limit: 500000

Count: 5

Severity: All

Formatter: Anonymous[ListFormatter]

4. Created a Location by choosing the "Location" tab

Name: framework.loger

Min: all

Max: all

Severity: all

5. Assigned the Destination created in (3) to the new Location

Configuration in the logger.xml file:


added the following to the logger.xml file:

the filename parameter is kept for backwards compatibility reasons.


<Logger name="framework.logger"



locationName = "framework.logger"


<LoggerClass className="com.sapportals.portal.prt.logger.SimpleFileLogger" level="ALL">

<param filename="logs/framework.logger.log" append="false"/>




Usage in source code:


static Location location = Location.getLocation("framework.logger");



The problem is:

Even though I save everything in the Visual Administrator (after step 5) the assigned

destination disappears if you, say browse the logviewer and return to the Location.

All log messages are written to the defaultTrace.

I tried using a Category. Created a new Category in the Visual Admin and assigned the

Destination created in step 3.

The usage in the source code was

static Category category = Category.getCategory("framework.logger");

. . .

// then using the location attempted to write, "xxxxx");

Once again everything was written to defaultTrace. the one difference however,

was that a (empty) logfile was created and the Destination assigned to

the Category did not 'get lost'

any hints as to what i'm doing wrong would be greatly appreciated.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on May 02, 2005 at 02:16 PM

    Hi Michael,

    probably you didn't deactivate ForceSingleTraceFile, see logging and tracing on the sap web as java.pdf pages 12-17

    Also see for portal specific statements.

    Hope it helps


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 02, 2005 at 01:41 PM

    Hi Michael,

    Have you activated the particular logger that you are writing to?

    1. Navigate to

    <b>Support Desk->Portal RunTime->Log Admin</b>

    2. Select your logger and Click on <b>configuration mode</b> button.

    3. Select <b>logger activated</b> value to <b>true</b> and <b>Level</b> to whatever messages you want to the system to log.

    4. Click on apply

    Message was edited by: Prakash Singh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.