cancel
Showing results for 
Search instead for 
Did you mean: 

how to switch on logging

Former Member
0 Kudos

Hi all,

I got an error when invoking a web service, and then I followed wiki faq to trace the request/response of the web service call.

<i>

You must first switch on logging to create a request / response log for a call. This should only be done for problem analysis purposes.</i>


if (logger.beDebug()) {
  requestMO.wdSetInvocationLogEnabled(true);
}

My question is how to switch on logging?

Thanks!

Regards,

Hui

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Hui,

use this code before executing the model.

logger is already available in ur view & controllers.

<ur request model>.wdSetInvocationLogEnabled(logger.beDebug() ? true : false);

regards

Sumit

Message was edited by:

Sumit Malhotra

Former Member
0 Kudos

Hi Sumit,

but how to make the return of logger.beDebug() as "true"

Regards,

Hui

Former Member
0 Kudos

Hi,

Try this:

1. Log on to the Visual Administrator. In the Cluster window expand the "<i>Services</i>" node and select "<i>Log Configurator</i>".

2. In the window that opens, click the "<i>Location</i>" tab, and click "<i>To Advanced Mode"</i>.

3. Make sure that "<i>ROOT LOCATION</i>" is selected and check the Severity level there.

4. On the window to the right, you can set the Severity level to Debug. Then click "<i>Copy severity to subtree</i>".

5. Click Save.

Regards,

Satyajit.