eric7.Plugins.CheckerPlugins.CodeStyleChecker.Logging.LoggingChecker
Module implementing a checker for logging related issues.
Global Attributes
Classes
| LoggingChecker | Class implementing a checker for logging related issues. | 
Functions
LoggingChecker
    Class implementing a checker for logging related issues.
Derived from
None
Class Attributes
Class Methods
Methods
| LoggingChecker | Constructor | 
| __checkLogging | Private method to check logging statements. | 
| __error | Private method to record an issue. | 
| __ignoreCode | Private method to check if the message code should be ignored. | 
| run | Public method to check the given source against miscellaneous conditions. | 
Static Methods
LoggingChecker (Constructor)
LoggingChecker(source, filename, tree, select, ignore, expected, repeat, args)
        Constructor
- source (list of str)
- 
source code to be checked
- filename (str)
- 
name of the source file
- tree (ast.Module)
- 
AST tree of the source code
- select (list of str)
- 
list of selected codes
- ignore (list of str)
- 
list of codes to be ignored
- expected (list of str)
- 
list of expected codes
- repeat (bool)
- 
flag indicating to report each occurrence of a code
- args (dict)
- 
dictionary of arguments for the various checks
LoggingChecker.__checkLogging
__checkLogging()
        Private method to check logging statements.
LoggingChecker.__error
__error(lineNumber, offset, code, *args)
        Private method to record an issue.
- lineNumber (int)
- 
line number of the issue
- offset (int)
- 
position within line of the issue
- code (str)
- 
message code
- args (list)
- 
arguments for the message
LoggingChecker.__ignoreCode
__ignoreCode(code)
        Private method to check if the message code should be ignored.
- code (str)
- 
message code to check for
- Return:
- 
flag indicating to ignore the given code
- Return Type:
- 
bool
LoggingChecker.run
run()
        Public method to check the given source against miscellaneous
        conditions.