Module implementing a node visitor to check for logging issues.
_LoggerMethods |
_LogrecordAttributes |
LoggingVisitor | Class implementing a node visitor to check for logging issues. |
_modnamedPlaceholderRe | Function to generate a regular expression object for '%' formatting codes using names. |
_modposPlaceholderRe | Function to generate a regular expression object for '%' formatting codes. |
Class implementing a node visitor to check for logging issues.
GetLoggerNames |
None |
LoggingVisitor | Constructor |
__atModuleLevel | Private method to check, if we are on the module level. |
__checkMsgAndArgs | Private method to check the message and arguments a given Call node. |
__currentExceptHandler | Private method to determine the current exception handler node. |
__flattenStrChain | Private method to flatten the given string chain. |
__isAddChainWithNonStr | Private method to check, if the node is an Add with a non string argument. |
__keywordPos | Private method determine line number and column offset of a given keyword node. |
visit | |
visit_Attribute | Public method to handle Attribute nodes. |
visit_Call | Public method to handle Call nodes. |
visit_Import | Public method to handle Import nodes. |
visit_ImportFrom | Public method to handle ImportFrom nodes. |
None |
Constructor
Private method to check, if we are on the module level.
Private method to check the message and arguments a given Call node.
Private method to determine the current exception handler node.
Private method to flatten the given string chain.
Private method to check, if the node is an Add with a non string argument.
Private method determine line number and column offset of a given keyword node.
Public method to handle Attribute nodes.
Public method to handle Call nodes.
Public method to handle Import nodes.
Public method to handle ImportFrom nodes.
Function to generate a regular expression object for '%' formatting codes using names.
Function to generate a regular expression object for '%' formatting codes.