Debug Tools
_SmartLogRecord Class Reference
Inheritance diagram for _SmartLogRecord:
Collaboration diagram for _SmartLogRecord:

Public Member Functions

def getMessage (self)
 

Public Attributes

 args
 
 msg
 

Detailed Description

    Creates a LogRecord which concatenates trailing arguments instead of raising an exception.

Definition at line 1404 of file logger.py.

Member Function Documentation

◆ getMessage()

def getMessage (   self)
Return the message for this LogRecord.

Return the message for this LogRecord after merging any user-supplied
arguments with the message.

Definition at line 1453 of file logger.py.

References _SmartLogRecord._getMessage(), and _SmartLogRecord.msg.

1453  def getMessage(self):
1454  """
1455  Return the message for this LogRecord.
1456 
1457  Return the message for this LogRecord after merging any user-supplied
1458  arguments with the message.
1459  """
1460  # print('self.msg', self.msg, ', self.args', self.args)
1461  remaining_arguments = []
1462  self.msg = str( self.msg )
1463 
1464  # https://stackoverflow.com/questions/38127563/handle-an-exception-in-a-while-loop
1465  while self._getMessage( remaining_arguments ): pass
1466  return " ".join( reversed( remaining_arguments ) )
1467 
1468 
Here is the call graph for this function:

The documentation for this class was generated from the following file: