'Initialize a logging record with interesting information.'

def __init__(self, name, level, pathname, lineno, msg, args, exc_info, func=None, sinfo=None, **kwargs):

    ct = time.time()
    self.name = name
    self.msg = msg
    if (args and (len(args) == 1) and isinstance(args[0], collections.Mapping) and args[0]):
        args = args[0]
    self.args = args
    self.levelname = getLevelName(level)
    self.levelno = level
    self.pathname = pathname
    try:
        self.filename = os.path.basename(pathname)
        self.module = os.path.splitext(self.filename)[0]
    except (TypeError, ValueError, AttributeError):
        self.filename = pathname
        self.module = 'Unknown    module'
    self.exc_info = exc_info
    self.exc_text = None
    self.stack_info = sinfo
    self.lineno = lineno
    self.funcName = func
    self.created = ct
    self.msecs = ((ct - int(ct)) * 1000)
    self.relativeCreated = ((self.created - _startTime) * 1000)
    if (logThreads and threading):
        self.thread = threading.get_ident()
        self.threadName = threading.current_thread().name
    else:
        self.thread = None
        self.threadName = None
    if (not logMultiprocessing):
        self.processName = None
    else:
        self.processName = 'MainProcess'
        mp = sys.modules.get('multiprocessing')
        if (mp is not None):
            try:
                self.processName = mp.current_process().name
            except Exception:
                pass
    if (logProcesses and hasattr(os, 'getpid')):
        self.process = os.getpid()
    else:
        self.process = None
