on 11-29-2006 1:30 PM
Hi,
I have looked at the following documentation :
a) Logging/Tracing - /people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application
b) SAP Note 587074
and yet I am still lost.
This is my log-configurator xml file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
<log-formatters>
<log-formatter
name="FileFormat"
pattern="%24d [%-8s] [%-8t] %-40l: %m"
type="ListFormatter"/>
</log-formatters>
<log-destinations>
<log-destination
count="5"
limit="100000"
name="LogFile"
pattern="./log/MyTestLogger/MyTestApp.log"
type="FileLog"/>
</log-destinations>
<log-controllers>
<log-controller
effective-severity="ALL"
name="com.test">
<associated-destinations>
<destination-ref
association-type="LOG"
name="LogFile"/>
</associated-destinations>
</log-controller>
</log-controllers>
</log-configuration>
com.test - package name for my application
I checked in Visual Administrator there is no log destination called LogFile. What do I still need to do ?
My view contains two input fields and button - Submit. On clicking submit this is what it does :
logger.entering("Testing Logger and Tracing functionality");
test(); // test is a public method declared in the view
logger.exiting("Testing Logger and tracing functionality");
logger.errorT("Error - Testing Logger and Tracing functionality");
if (logger.beLogged(Severity.INFO)) {
logger.infoT("Submit", "Submit Log error text");
}
I do not see any entries in either .trc file or MyTestApp.log
Regards,
Subramanian V.
Test again and it is working. No changes.
Regards,
Subramanian V.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
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.