Android Open Source - GeoTagger Logger






From Project

Back to project page GeoTagger.

License

The source code is released under:

GNU General Public License

If you think the Android project GeoTagger listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package horizon.android.logging;
/*  w ww  . j a va 2  s .  c  om*/
import java.util.HashMap;
import java.util.Map;

import android.util.Log;

public class Logger 
{
  private static final Map<Package, Logger> loggers = new HashMap<Package, Logger>();
  
  public static Logger getLogger(Class<?> clazz)
  {
    if(loggers.containsKey(clazz.getPackage()))
      return loggers.get(clazz.getPackage());
    
    Logger logger = new Logger(clazz.getPackage().getName());
    loggers.put(clazz.getPackage(), logger);
    return logger;
  }
  
  private final String name;
  
  public Logger(String name)
  {
    this.name = name;
  }
  
  public void debug(String message)
  {
    Log.d(name, message);
  }
  
  public void debug(String message, Throwable cause)
  {
    Log.d(name, message, cause);
  }
  
  public void error(String message)
  {
    Log.e(name, message);
  }
  
  public void error(String message, Throwable cause)
  {
    Log.e(name, message, cause);
  }
  
  public void info(String message)
  {
    Log.i(name, message);
  }
  
  public void info(String message, Throwable cause)
  {
    Log.i(name, message, cause);
  }
  
  public void verbose(String message)
  {
    Log.v(name, message);
  }
  
  public void verbose(String message, Throwable cause)
  {
    Log.v(name, message, cause);
  }
  
  public void warn(String message)
  {
    Log.w(name, message);
  }
  
  public void warn(String message, Throwable cause)
  {
    Log.w(name, message, cause);
  }
}




Java Source Code List

horizon.android.logging.Logger.java
horizon.geotagger.AlertService.java
horizon.geotagger.Base64.java
horizon.geotagger.GeoTagger.java
horizon.geotagger.GeoTagger.java
horizon.geotagger.GeoUtils.java
horizon.geotagger.GeoUtils.java
horizon.geotagger.JavaLoggingAppender.java
horizon.geotagger.JspUtils.java
horizon.geotagger.PMF.java
horizon.geotagger.PersconServiceConnection.java
horizon.geotagger.model.Attachment.java
horizon.geotagger.model.Attachment.java
horizon.geotagger.model.Place.java
horizon.geotagger.model.Place.java
horizon.geotagger.model.Tag.java
horizon.geotagger.model.Tag.java
horizon.geotagger.server.AddTagServlet.java
horizon.geotagger.server.CallbackServlet.java
horizon.geotagger.server.DataBinder.java
horizon.geotagger.server.ModelAndView.java
horizon.geotagger.server.ServletWithView.java
horizon.geotagger.server.TagsAtPointData.java
horizon.geotagger.server.TagsAtPointServlet.java
horizon.geotagger.server.TagsInBoxData.java
horizon.geotagger.server.TagsInBoxServlet.java
horizon.geotagger.view.CameraSurfaceView.java
horizon.geotagger.view.DoImageTagView.java
horizon.geotagger.view.DoTagView.java
horizon.geotagger.view.DoTextTagView.java
horizon.geotagger.view.MapView.java
horizon.geotagger.view.TagOverlay.java
horizon.geotagger.view.TagView.java