pyenv-virtualenv for Windows 1.2
A 'pyenv' plugin to manage Python virtual environments, depending on different Python versions, for various Python projects.
Loading...
Searching...
No Matches
log.py File Reference

Go to the source code of this file.

Namespaces

namespace  log
 

Functions

 log.initLogging ()
 Initialize the logging.
 
bool log.isInitialized ()
 
str log.getExcInfoStr (tuple exc_info)
 Parse the exception data for human-readable information.
 
str log.getMsgText ((str, tuple) msg)
 Get text string from "msg" object argument.
 
 log.printLogToConsole (int level,(str, tuple) msg)
 Log leveled and colored message to console only.
 
 log.critical ((str, tuple) msg)
 Log critical error message colored to console only.
 
 log.error ((str, tuple) msg)
 Log error message colored to console only.
 
 log.success ((str, tuple) msg)
 Log success message colored to console only.
 
 log.warning ((str, tuple) msg)
 Log warning message colored to console only.
 
 log.notice ((str, tuple) msg)
 Log notice message colored to console only.
 
 log.info ((str, tuple) msg)
 Log info message colored to console only.
 
 log.verbose ((str, tuple) msg)
 Log verbose message colored to console only.
 
 log.debug ((str, tuple) msg)
 Log debug message colored to console only.
 
 log.spam ((str, tuple) msg)
 Log spam message colored to console only.
 

Variables

list log.LOG_LEVELS
 List of log level attributes for comprehensive logging.
 
int log.LOG_LEVEL = 20
 Actual log level.
 
int log.LEVEL_COLUMN_WIDTH = 0
 Width of the column, which shows the log level name.
 
bool log._is_initialized = False
 Flag, which states, that the logging is initialized for this program.
 
 log.UnexpExcInfo
 Named tuple definition of unexpected exception.
 

Detailed Description

Author
Michael Paul Korthals
Date
2025-07-10
Version
1.0.0

Library to output colored logging in "pyenv-virtualenv".

Definition in file log.py.