public static void log(Throwable error,String message,Object... args){
  if (loggingEnabled) {
    Log.d(TAG,args.length == 0 ? message : String.format(message,args),error);
  }
}

public static void log ( Throwable error , String message , Object ... args ) { if ( loggingEnabled ) { Log . d ( TAG , args . length == 0 ? message : String . format ( message , args ) , error ) ; } }
send a log message if logging is enabled .
