def logger.logger.__init__ |
( |
|
self | ) |
|
__init__:
init the logger in DEBUG mode.
27 init the logger in DEBUG mode.
def logger.logger.add |
( |
|
self, |
|
|
|
level, |
|
|
|
string |
|
) |
| |
add :
add lines to appender(file log).
Args are :
- (str) level
- (str) string, a more explicative information.
Log Levels:
CRITICAL 50
ERROR 40
WARNING 30
INFO 20
DEBUG 10
52 def add(self, level, string):
55 add lines to appender(file log). 58 - (str) string, a more explicative information. 68 if level.lower() ==
"debug":
69 self.logger.debug(string)
71 if level.lower() ==
"info":
72 self.logger.info(string)
74 if level.lower() ==
"warning":
75 self.logger.warning(string)
77 if level.lower() ==
"error":
78 self.logger.error(string)
80 if level.lower() ==
"critical":
81 self.logger.critical(string)
def logger.logger.catch |
( |
|
self, |
|
|
|
string |
|
) |
| |
catch:
feed the logger with string
43 def catch(self, string):
46 feed the logger with string 48 logging.exception(string)
logger.logger.file_handler |
|
static |
logger.logger.logFile = config.logFile |
|
static |
logger.logger.logFileBackup = config.logFileBackup |
|
static |
logger.logger.logFileSize = config.logFileSize |
|
static |
The documentation for this class was generated from the following file: