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)
          Logs a debug message.
 void d(java.lang.String msg, java.lang.Throwable tr)
          Logs a debug message.
 void e(java.lang.String msg)
          Logs an error message.
 void e(java.lang.String msg, java.lang.Throwable tr)
          Logs an error message.
 void i(java.lang.String msg)
          Logs an informational message.
 void i(java.lang.String msg, java.lang.Throwable tr)
          Logs an informational message.
 void v(java.lang.String msg)
          Logs a verbose debug message.
 void v(java.lang.String msg, java.lang.Throwable tr)
          Logs a verbose debug message.
 void w(java.lang.String msg)
          Logs a warning message.
 void w(java.lang.String msg, java.lang.Throwable tr)
          Logs a warning message.
 
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)
Logs an informational message.

Parameters:
msg - A message that you want to log.

i

public void i(java.lang.String msg,
              java.lang.Throwable tr)
Logs an informational message.

Parameters:
msg - A message that you want to log.
tr - An exception that you want to log.

d

public void d(java.lang.String msg)
Logs a debug message.

Parameters:
msg - A message that you want to log.

d

public void d(java.lang.String msg,
              java.lang.Throwable tr)
Logs a debug message.

Parameters:
msg - A message that you want to log.
tr - An exception that you want to log.

e

public void e(java.lang.String msg,
              java.lang.Throwable tr)
Logs an error message.

Parameters:
msg - A message that you want to log.
tr - An exception that you want to log.

e

public void e(java.lang.String msg)
Logs an error message.

Parameters:
msg - A message that you want to log.

w

public void w(java.lang.String msg)
Logs a warning message.

Parameters:
msg - A message that you want to log.

w

public void w(java.lang.String msg,
              java.lang.Throwable tr)
Logs a warning message.

Parameters:
msg - A message that you want to log.
tr - An exception that you want to log.

v

public void v(java.lang.String msg)
Logs a verbose debug message.

Parameters:
msg - A message that you want to log.

v

public void v(java.lang.String msg,
              java.lang.Throwable tr)
Logs a verbose debug message.

Parameters:
msg - A message that you want to log.
tr - An exception that you want to log.