logger - Support tools for logger configuration

ClientHandler

capture_warnings

monkeypatch_warnings_formatter

Modify the global the warnings formatter to get rid of the source code display.

print_logging_configuration

setup_client_logging

setup_console_logging

class bumps.logger.ClientHandler(action=None)[source]

Bases: Handler

emit(record)[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

bumps.logger.capture_warnings(monkeypatch=False)[source]
bumps.logger.monkeypatch_warnings_formatter(strip_newline=False)[source]

Modify the global the warnings formatter to get rid of the source code display. If strip_newline then remove the trailing linefeed character as well.

Use warnings.formatwarning.restore() to recover original warnings formatting.

bumps.logger.print_logging_configuration()[source]
bumps.logger.setup_client_logging(level, action=None)[source]
bumps.logger.setup_console_logging(level)[source]