from termcolor import colored

logFile = None

def open_log(path):
    global logFile
    logFile = open(path+"/log.txt","a")


def info(*msg):
    global logFile
    s = "[I] " + " ".join(list(map(str, msg)))
    print(colored(s, "green"))
    logFile.write(s+"\n")


def debug(*msg):
    global logFile
    s = "[D] " + " ".join(list(map(str, msg)))
    print(colored(s, "yellow"))
    logFile.write(s+"\n")


def error(*msg):
    global logFile
    s = "[E] " + " ".join(list(map(str, msg)))
    print(colored(s, "red"))
    logFile.write(s+"\n")

    
def close_log():
    global logFile
    logFile.close()
9f3dcc05db2d191ccf67ea3479d8bd52048f6d27
<mask token>


def open_log(path):
    global logFile
    logFile = open(path + '/log.txt', 'a')


<mask token>


def debug(*msg):
    global logFile
    s = '[D] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'yellow'))
    logFile.write(s + '\n')


def error(*msg):
    global logFile
    s = '[E] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'red'))
    logFile.write(s + '\n')


def close_log():
    global logFile
    logFile.close()

<mask token>


def open_log(path):
    global logFile
    logFile = open(path + '/log.txt', 'a')


def info(*msg):
    global logFile
    s = '[I] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'green'))
    logFile.write(s + '\n')


def debug(*msg):
    global logFile
    s = '[D] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'yellow'))
    logFile.write(s + '\n')


def error(*msg):
    global logFile
    s = '[E] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'red'))
    logFile.write(s + '\n')


def close_log():
    global logFile
    logFile.close()

<mask token>
logFile = None


def open_log(path):
    global logFile
    logFile = open(path + '/log.txt', 'a')


def info(*msg):
    global logFile
    s = '[I] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'green'))
    logFile.write(s + '\n')


def debug(*msg):
    global logFile
    s = '[D] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'yellow'))
    logFile.write(s + '\n')


def error(*msg):
    global logFile
    s = '[E] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'red'))
    logFile.write(s + '\n')


def close_log():
    global logFile
    logFile.close()

from termcolor import colored
logFile = None


def open_log(path):
    global logFile
    logFile = open(path + '/log.txt', 'a')


def info(*msg):
    global logFile
    s = '[I] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'green'))
    logFile.write(s + '\n')


def debug(*msg):
    global logFile
    s = '[D] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'yellow'))
    logFile.write(s + '\n')


def error(*msg):
    global logFile
    s = '[E] ' + ' '.join(list(map(str, msg)))
    print(colored(s, 'red'))
    logFile.write(s + '\n')


def close_log():
    global logFile
    logFile.close()

from termcolor import colored

logFile = None

def open_log(path):
    global logFile
    logFile = open(path+"/log.txt","a")


def info(*msg):
    global logFile
    s = "[I] " + " ".join(list(map(str, msg)))
    print(colored(s, "green"))
    logFile.write(s+"\n")


def debug(*msg):
    global logFile
    s = "[D] " + " ".join(list(map(str, msg)))
    print(colored(s, "yellow"))
    logFile.write(s+"\n")


def error(*msg):
    global logFile
    s = "[E] " + " ".join(list(map(str, msg)))
    print(colored(s, "red"))
    logFile.write(s+"\n")

    
def close_log():
    global logFile
    logFile.close()