(instruction, found="")
logging function that creates hierarchial display of the processes of
    different functions. Copied into different python files to maintain
    global variables.

    :param instruction: what you want to be displayed
    :param found: if you want to display something found like target column
logging function that creates hierarchial display of the processes of
    different functions. Copied into different python files to maintain
    global variables.
logging function that creates hierarchial display of the processes of different functions . Copied into different python files to maintain global variables .
def logger(instruction, found=""):
    '''
    logging function that creates hierarchial display of the processes of
    different functions. Copied into different python files to maintain
    global variables.

    :param instruction: what you want to be displayed
    :param found: if you want to display something found like target column
    '''

    global counter
    if counter == 0:
        print((" " * 2 * counter) + str(instruction) + str(found))
    elif instruction == "->":
        counter = counter - 1
        print(Fore.BLUE + (" " * 2 * counter) +
              str(instruction) + str(found) + (Style.RESET_ALL))
    else:
        print((" " * 2 * counter) + "|- " + str(instruction) + str(found))
        if instruction == "done...":
            print("\n" + "\n")

    counter += 1
def logger ( instruction , found = "" ) : global counter if counter == 0 : print ( ( " " * 2 * counter ) + str ( instruction ) + str ( found ) ) elif instruction == "->" : counter = counter - 1 print ( Fore . BLUE + ( " " * 2 * counter ) + str ( instruction ) + str ( found ) + ( Style . RESET_ALL ) ) else : print ( ( " " * 2 * counter ) + "|- " + str ( instruction ) + str ( found ) ) if instruction == "done..." : print ( "\n" + "\n" ) counter += 1