cancel
Showing results for 
Search instead for 
Did you mean: 

Logging/Tracing

Former Member
0 Kudos

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

c)

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Test again and it is working. No changes.

Regards,

Subramanian V.