Skip to Content
avatar image
Former Member

log files not generated

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 19, 2006 at 03:36 PM

    Hi,

    Go thru this link

    generating-log-file-from-webdynpros

    this might helps you.

    Thanks,

    Lohi.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 20, 2006 at 06:40 PM

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

    Regards,

    Debasish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Debasish ,

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

      Did you set the severity to INFO ??

      Regards, Anilkumar

  • avatar image
    Former Member
    Dec 22, 2006 at 12:41 PM

    Hi Anil,

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

    The severity is set to ALL.

    Regards,

    Debasish

    Add comment
    10|10000 characters needed characters exceeded