com.webtrends.mobile.analytics.rim
Class WebtrendsLogger

java.lang.Object
  extended by WebtrendsObservable
      extended by com.webtrends.mobile.analytics.rim.WebtrendsLogger

public class WebtrendsLogger
extends WebtrendsObservable

Provides a mechanism that you can use for logging debug information, warnings, and errors that occur in your application. Each method in this class takes a String argument which represents a human-readable message. Messages are written to the system event log and to System.out(). Each method optionally takes a Throwable argument. The following code sample demonstrates how you can log information about an exception that is thrown when your application attempts to track a button click:

 try
 {
     WebtrendsDataCollector.getInstance().onButtonClick("/chatapp/newuser",
             "Signup screen", "sign up", null);
 }
 catch (IllegalWebtrendsParameterValueException err)
 {
     WebtrendsDataCollector.getLog().e(err.getMessage(), err);
 }
 


Method Summary
 void d(java.lang.String msg)
           
 void d(java.lang.String msg, java.lang.Throwable tr)
           
 void e(java.lang.String msg)
           
 void e(java.lang.String msg, java.lang.Throwable tr)
           
 void i(java.lang.String msg)
           
 void i(java.lang.String msg, java.lang.Throwable tr)
           
 void v(java.lang.String msg)
           
 void v(java.lang.String msg, java.lang.Throwable tr)
           
 void w(java.lang.String msg)
           
 void w(java.lang.String msg, java.lang.Throwable tr)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

i

public void i(java.lang.String msg)

i

public void i(java.lang.String msg,
              java.lang.Throwable tr)

d

public void d(java.lang.String msg)

d

public void d(java.lang.String msg,
              java.lang.Throwable tr)

e

public void e(java.lang.String msg,
              java.lang.Throwable tr)

e

public void e(java.lang.String msg)

w

public void w(java.lang.String msg)

w

public void w(java.lang.String msg,
              java.lang.Throwable tr)

v

public void v(java.lang.String msg)

v

public void v(java.lang.String msg,
              java.lang.Throwable tr)