docs: def LogMsg(msg):
  	""" Writes a formatted log message with a timestamp to stdout. """
  
  	global headerlogged
  
  	if headerlogged == 0:
  		print("{0:<8} {1:<90} {2}".format(
  			"Time",
  			"MainThread",
  			"UpdateSNMPObjsThread"
  		))
  		print("{0:-^120}".format("-"))
  		headerlogged = 1
  
  	threadname = threading.currentThread().name
  
  	funcname = sys._getframe(1).f_code.co_name
  	if funcname == "<module>":
  		funcname = "Main code path"
  	elif funcname == "LogNetSnmpMsg":
  		funcname = "net-snmp code"
  	else:
  		funcname = "{0}()".format(funcname)
  
  	if threadname == "MainThread":
  		logmsg = "{0} {1:<112.112}".format(
  			time.strftime("%T", time.localtime(time.time())),
  			"{0}: {1}".format(funcname, msg)
  		)
  	else:
  		logmsg = "{0} {1:>112.112}".format(
  			time.strftime("%T", time.localtime(time.time())),
  			"{0}: {1}".format(funcname, msg)
  		)
  	print(logmsg)