on 08-03-2009 9:24 AM
Hello SDN!
I'm working with NW 7.0
I've tried to setup logging for my WD application according to /people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application
I've created Log Formatter, Log Destination and Log Controller. Controller name is "ru.sng.indexes" - it is the same as root package structure for my application. Also I've checked that log-configuration.xml placed in META-INF directory. But there are no my formatters, locations and destinations in Visual Admin after deploying application and there is no log file in directory which set up as path for log file.
How to set up logging and tracing properly?
ForceSingleTraceFile set up to "NO".
Regards, Lev
Edited by: Lev Kulaev on Aug 3, 2009 12:30 PM
Hi,
your application provides log configuration information using an XML file at deployment time. This file is called log-configuration.xml (you can see the DTD description here: http://help.sap.com/saphelp_nw04/helpdata/en/48/ef8748caed894bb4b3ae953a60c592/frameset.htm). There you can set configure log controllers, which could be two types: location and category. So, you can specify your location and severity there. This is described here: http://help.sap.com/saphelp_nw04/helpdata/en/35/671c0136b4714c9e1b16b68211287b/frameset.htm.
Then, after the application is deployed, the log configurations you provided for it are registered with the Log Configuration tool I mentioned about. Using this tool you can later on modify your configurations at runtime (for example, change the severity level) without having to redeploy the application.
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
>
> Then, after the application is deployed, the log configurations you provided for it are registered with the Log Configuration tool I mentioned about. Using this tool you can later on modify your configurations at runtime (for example, change the severity level) without having to redeploy the application.
Yes, I know about it. I set up controller name as "ru.sng.indexes" in log-configuration.xml. But there is no such location in Visual Admin after deploying my application and I can't understand why.
regards, Lev
Here is an XML file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
<log-formatters>
<log-formatter name="application_sng.ru/indexes~main" pattern="%d,%-3p %t %s %l %m" type="TraceFormatter"/>
</log-formatters>
<log-destinations>
<log-destination count="10" effective-severity="ALL" limit="10000000" name="application_sng.ru_indexes"
pattern=".\log\applications\indexes.log" type="FileLog">
<formatter-ref name="application_sng.ru/indexes~main"/>
</log-destination>
</log-destinations>
<log-controllers>
<log-controller effective-severity="ALL" name="ru.sng.indexes">
<associated-destinations>
<destination-ref association-type="LOG" name="application_sng.ru_indexes"/>
</associated-destinations>
</log-controller>
</log-controllers>
</log-configuration>
I still need your help...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can configure the logging using the Log Configurator service of the J2EE Engine (use the Visual Administrator tool to perform the configuration tasks). You can set severity levels, as well as do some editing of current log formatters, log destinations, etc.
For more information, please, refer to the logging/tracing documentation of the J2EE Engine: http://help.sap.com/saphelp_nw04/helpdata/en/b7/54e63f48e58f15e10000000a155106/frameset.htm
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Set the ForceSingleTraceFile to NO.
http://help.sap.com/saphelp_nw70/helpdata/EN/e2/75a74046033913e10000000a155106/frameset.htm
Check the prerequisite and the format of the log-configuration xml.
http://help.sap.com/saphelp_nw70/helpdata/EN/b4/d1e6418b7eca17e10000000a155106/frameset.htm
default webdynpro trace to DefaultTrace.trc file.
Hope this help you..
Regards,
Saleem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
Thanl you for your quick reply.
Yes, ForceSingleTraceFile set to NO.
I've checked your link about format of log-configuration file. I'm working with this file via NWDS Log Configurator tool so I don't think that this file is incorrect. I have even replaced source from log-configuration file (from CRM B2B 5.0) which is visible in VA (of course I renamed locations, destinations etc) but there is no effect. I don't see my logging settings for WD application in VA after deploying.
Regards, Lev
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.