Initial commit

This commit is contained in:
2013-11-05 11:44:26 -04:30
commit 9635163950
36 changed files with 1445 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package ve.ucv.ciens.ccg.nxtcam.utils;
import android.util.Log;
public abstract class Logger {
public static enum LOG_TYPES{ DEBUG, INFO, WARN, ERROR, VERBOSE, WTF }
public static void log(LOG_TYPES log_type, String tag, String msg){
if(ProjectConstants.DEBUG){
switch(log_type){
case DEBUG:
Log.d(tag, msg);
break;
case INFO:
Log.i(tag, msg);
break;
case WARN:
Log.w(tag, msg);
break;
case ERROR:
Log.e(tag, msg);
break;
case VERBOSE:
Log.v(tag, msg);
break;
case WTF:
Log.wtf(tag, msg);
break;
}
}
}
}