def log(self, level=0, *args):
        global _thisFile
        tbStack = traceback.extract_stack()
        # trim off the calls from this module
        callid = 0
        while 1:
            # handle .py / .pyc
            if _thisFile.startswith(os.path.basename(tbStack[callid][0])):
                callid = callid - 1
                break
            callid = callid + 1
        module = ''
        try:
            path = tbStack[callid][0].split('/')
            if len(path) > 1:
                dirname = path[-2] + "/"
            else:
                dirname = ""
            # poor man's way of stripping the extension
            filename = path[-1].split('.')
            module = "%s%s" % (dirname, ".".join(filename[:-1]))
            del path
        except:
            module = ''
        location = tbStack[callid][2]
        if location == "?":
            location = "__main__"
        msg = "%s.%s" % (module, location)
        if len(args):
            msg = "%s %s" % (msg, " ".join([self.argStr(x) for x in args]))
        # finally, output the log
        self.printLog(level, msg)

    # this function is mainly here so we can subclass it (ie, tracing)
dataset/ETHPy150Open sassoftware/conary/conary/lib/tracelog.py/FileLog.log/original