Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

About Log in Web Dynpro Java

1. Following is my log-configuration:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">

<log-configuration>

<log-formatters>

<log-formatter

name="MyFormatter"

pattern="%24d %-40l [%t] %s: %m"

type="TraceFormatter"/>

</log-formatters>

<log-destinations>

<log-destination

count="10"

effective-severity="INFO"

limit="100000"

name="MyDestination"

pattern="%t/trace.log"

type="FileLog"/>

</log-destinations>

<log-controllers>

<log-controller

name="MyController"/>

</log-controllers>

</log-configuration>

2. Following is my code:

private static final com.sap.tc.logging.Location logger =

com.sap.tc.logging.Location.getLocation(StartView.class);

public void wdDoInit()

{

//@@begin wdDoInit()

logger.entering("StartView - wdDoInit()");

logger.exiting("StartView - wdDoInit()");

//@@end

}

Question:

Why I can not find the outfile in path ("c:\temp")?

Former Member
Not what you were looking for? View more on this topic or Ask a question