(self, msg)
Logs a message to the log file.
		
		Arguments
		
		msg			-	A string that should be added to the log
						file.
Logs a message to the log file.
		
		Arguments
		
		msg			-	A string that should be added to the log
						file.
Logs a message to the log file . Arguments msg - A string that should be added to the log file .
def log(self, msg):
		
		"""Logs a message to the log file.
		
		Arguments
		
		msg			-	A string that should be added to the log
						file.
		"""
		
		# Make sure that the message is in a unicode format.
		msg = msg.decode(u'utf-8')
		
		# A message is a time-stamped sample, with a slightly different
		# content than normal samples. In essence, the log message sample
		# is pretending to be a real sample, with a list for the 'left'
		# and the 'right' eye. It seems a bit ridiculous, but the nested
		# lists are there to prevent the strings from being pulled apart
		# when self._log_sample tries to turn them into lists.
		sample = [time.time(), [[u'MSG'], [msg]]]

		# Put the sample in the Queue.
		self._samplequeue.put(sample)
def log ( self , msg ) : # Make sure that the message is in a unicode format. msg = msg . decode ( u'utf-8' ) # A message is a time-stamped sample, with a slightly different # content than normal samples. In essence, the log message sample # is pretending to be a real sample, with a list for the 'left' # and the 'right' eye. It seems a bit ridiculous, but the nested # lists are there to prevent the strings from being pulled apart # when self._log_sample tries to turn them into lists. sample = [ time . time ( ) , [ [ u'MSG' ] , [ msg ] ] ] # Put the sample in the Queue. self . _samplequeue . put ( sample )