Skip to Content
0
Former Member
Oct 28, 2004 at 09:40 AM

Question about the use of the logger

44 Views

I am trying to use the logger but it seems that unless i create a location named: "myview.class", i will not be able to see it? is this correct.

This code is generated automatically:

<b>private static final com.sap.tc.logging.Location logger =

com.sap.tc.logging.Location.getLocation(myView.class);</b>

And i can not change it, so if i dont have the location i can not use it.

<b>logger.errorT("myMessage"); - this will not be seen.</b>

The only way i could see my log messages was if i did this:

com.sap.tc.logging.Location.getLocation("ExistingOldLocation").errorT("mymessage");