Logger.java :  » UnTagged » and-the-word » net » bible » service » sword » Android Open Source

Android Open Source » UnTagged » and the word 
and the word » net » bible » service » sword » Logger.java
package net.bible.service.sword;

/** Not sure whether to use Log or jdk logger or log4j.
 * Log requires the android classes and is used for front end classes but these classes really belong in the back end
 * 
 * @author denha1m
 *
 */
public class Logger {
  private String name;
  public Logger(String name) {
    this.name = name;
  }
  public void debug(String s) {
    System.out.println(name+":"+s);
  }
  public void error(String s) {
    System.out.println(name+":"+s);
  }
  public void error(String s, Exception e) {
    System.out.println(name+":"+s);
    e.printStackTrace();
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.