Skip to content

bumpversion.ui ​

Utilities for user interface.

logger ​

python
logger = logging.getLogger('bumpversion')

VERBOSITY ​

python
VERBOSITY = {0: (logging.WARNING, '%(message)s'), 1: (logging.INFO, '%(message)s'), 2: (logging.DEBUG, '%(message)s'), 3: (logging.DEBUG, '%(message)s %(pathname)s:%(lineno)d')}

get_indented_logger ​

python
def get_indented_logger(name: str) -> IndentedLoggerAdapter

Get a logger with indentation.

setup_logging ​

python
def setup_logging(verbose: int = 0) -> None

Configure the logging.

print_info ​

python
def print_info(msg: str) -> None

Echo a message to the console.

print_error ​

python
def print_error(msg: str) -> None

Raise an error and exit.

print_warning ​

python
def print_warning(msg: str) -> None

Echo a warning to the console.