![]() |
pyenv-virtualenv for Windows 1.2
A 'pyenv' plugin to manage Python virtual environments, depending on different Python versions, for various Python projects.
|
Functions | |
| initLogging () | |
| Initialize the logging. | |
| bool | isInitialized () |
| str | getExcInfoStr (tuple exc_info) |
| Parse the exception data for human-readable information. | |
| str | getMsgText ((str, tuple) msg) |
| Get text string from "msg" object argument. | |
| printLogToConsole (int level,(str, tuple) msg) | |
| Log leveled and colored message to console only. | |
| critical ((str, tuple) msg) | |
| Log critical error message colored to console only. | |
| error ((str, tuple) msg) | |
| Log error message colored to console only. | |
| success ((str, tuple) msg) | |
| Log success message colored to console only. | |
| warning ((str, tuple) msg) | |
| Log warning message colored to console only. | |
| notice ((str, tuple) msg) | |
| Log notice message colored to console only. | |
| info ((str, tuple) msg) | |
| Log info message colored to console only. | |
| verbose ((str, tuple) msg) | |
| Log verbose message colored to console only. | |
| debug ((str, tuple) msg) | |
| Log debug message colored to console only. | |
| spam ((str, tuple) msg) | |
| Log spam message colored to console only. | |
Variables | |
| list | LOG_LEVELS |
| List of log level attributes for comprehensive logging. | |
| int | LOG_LEVEL = 20 |
| Actual log level. | |
| int | LEVEL_COLUMN_WIDTH = 0 |
| Width of the column, which shows the log level name. | |
| bool | _is_initialized = False |
| Flag, which states, that the logging is initialized for this program. | |
| UnexpExcInfo | |
| Named tuple definition of unexpected exception. | |
| log.initLogging | ( | ) |
Initialize the logging.
Definition at line 71 of file log.py.
| bool log.isInitialized | ( | ) |
| str log.getExcInfoStr | ( | tuple | exc_info | ) |
Parse the exception data for human-readable information.
This allows the developer to identify and locate the exception.
| exc_info | Output of sys.exc_info(). |
Definition at line 99 of file log.py.
| str log.getMsgText | ( | (str, tuple) | msg | ) |
Get text string from "msg" object argument.
| msg | Message as str or result of "sys.exc_info()" as tuple. |
Definition at line 129 of file log.py.
| log.printLogToConsole | ( | int | level, |
| (str, tuple) | msg ) |
Log leveled and colored message to console only.
| level | ID of logging level. |
| msg | Message as str or result of "sys.exc_info()" as tuple. |
Definition at line 142 of file log.py.
| log.critical | ( | (str, tuple) | msg | ) |
| log.error | ( | (str, tuple) | msg | ) |
| log.success | ( | (str, tuple) | msg | ) |
| log.warning | ( | (str, tuple) | msg | ) |
| log.notice | ( | (str, tuple) | msg | ) |
| log.info | ( | (str, tuple) | msg | ) |
| log.verbose | ( | (str, tuple) | msg | ) |
| log.debug | ( | (str, tuple) | msg | ) |
| log.spam | ( | (str, tuple) | msg | ) |
| list log.LOG_LEVELS |
List of log level attributes for comprehensive logging.
NOTE: Color of level 20 is default color in terminals with black background like e.g. the cmd.exe window in Windows.
| int log.LOG_LEVEL = 20 |
| int log.LEVEL_COLUMN_WIDTH = 0 |
|
protected |