app/src/main/java/com/example/dannyboy/smartguitarapp/DebugLog.java
public static void d(String TAG, String message){
		if(DEBUG){
			String fullClassName = Thread.currentThread().getStackTrace()[3].getClassName();
			String className = fullClassName.substring(fullClassName.lastIndexOf(".") + 1);
			String methodName = Thread.currentThread().getStackTrace()[3].getMethodName();
			int lineNumber = Thread.currentThread().getStackTrace()[3].getLineNumber();
			Log.d(TAG, className + "." + methodName + "(), line " + lineNumber + ": " + message);
			if(debugView != null){
				updateDebugLog(TAG, message);
			}
		}
	}
/**
	 * Used when the message passed to the logger is of debug severity level
	 * @param TAG message Tag
	 * @param message message content
	 */
Used when the message passed to the logger is of debug severity level
@param TAG message Tag
@param message message content
Used when the message passed to the logger is of debug severity level @param TAG message Tag @param message message content
public static void d(String TAG, String message){
		if(DEBUG){
			String fullClassName = Thread.currentThread().getStackTrace()[3].getClassName();
			String className = fullClassName.substring(fullClassName.lastIndexOf(".") + 1);
			String methodName = Thread.currentThread().getStackTrace()[3].getMethodName();
			int lineNumber = Thread.currentThread().getStackTrace()[3].getLineNumber();
			Log.d(TAG, className + "." + methodName + "(), line " + lineNumber + ": " + message);
			if(debugView != null){
				updateDebugLog(TAG, message);
			}
		}
	}
public static void d ( String TAG , String message ) { if ( DEBUG ) { String fullClassName = Thread . currentThread ( ) . getStackTrace ( ) [ 3 ] . getClassName ( ) ; String className = fullClassName . substring ( fullClassName . lastIndexOf ( "." ) + 1 ) ; String methodName = Thread . currentThread ( ) . getStackTrace ( ) [ 3 ] . getMethodName ( ) ; int lineNumber = Thread . currentThread ( ) . getStackTrace ( ) [ 3 ] . getLineNumber ( ) ; Log . d ( TAG , className + "." + methodName + "(), line " + lineNumber + ": " + message ) ; if ( debugView != null ) { updateDebugLog ( TAG , message ) ; } } }
Used when the message passed to the logger is of debug severity level
 @param TAG message Tag
 @param message message content
Used when the message passed to the logger is of debug severity level @param TAG message Tag @param message message content