cancel
Showing results for 
Search instead for 
Did you mean: 

log files not generated

Former Member
0 Kudos

Hi,

I have created a simple webdynpro application and have added this code ..

final String method="wdDoInit()";

logger.entering(method);

logger.debugT("Just check");

in the wdDoInit of my component controller.

In the log-configurator.xml

I have said log formatter, log-destination and log-controller.

In log-destination pattern is set to C:\Applog.log

the xml code for the log-configurator is as follows:

***********************************************************************************************

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

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

<log-configuration>

<log-formatters>

<log-formatter

name="My_formatter"

pattern="%s"

type="TraceFormatter"/>

</log-formatters>

<log-destinations>

<log-destination

effective-severity="ALL"

name="My_Destination"

pattern="C:\Applog.log"

type="FileLog">

<formatter-ref

name="My_formatter"/>

</log-destination>

</log-destinations>

<log-controllers>

<log-controller

minimum-severity="ALL"

name="sap.com.log">

<associated-destinations>

<destination-ref

association-type="LOG"

name="My_Destination"/>

</associated-destinations>

</log-controller>

<log-controller

name="Application/App">

<associated-destinations>

<destination-ref

association-type="LOG"

name="My_Destination"/>

</associated-destinations>

</log-controller>

</log-controllers>

</log-configuration>

***********************************************************************************************

I am using J2ee WebAS 7 sp 9.

I have also set the ForceSingleTraceFile=No and restart server.

Also the sererity is set to ALL .

Kindly do let me where the problem is ?

Regards,

Debasish

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Anil,

The problem is that the log files are not getting generated.

The severity is set to ALL.

Regards,

Debasish

Former Member
0 Kudos

I have had a look into the problem, but is still not solved, kindly help!

Regards,

Debasish

Former Member
0 Kudos

Hi Debasish ,

What is the problem exactly.Log file not getting generated ?

Did you set the severity to INFO ??

Regards, Anilkumar

Former Member
0 Kudos

Hi,

Go thru this link

this might helps you.

Thanks,

Lohi.