liwca.set_log_level#

liwca.set_log_level(level=20)[source]#

Configure logging output for the liwca package.

Adds a StreamHandler with a simple format to the "liwca" logger and sets the given level. Safe to call multiple times — the handler is only added once.

Parameters:

level (int or str, optional) – Logging level (default logging.INFO). Accepts constants like logging.DEBUG or strings like "DEBUG".

Return type:

None

Examples

>>> import liwca
>>> liwca.set_log_level("DEBUG")  # verbose output
>>> liwca.set_log_level()  # INFO (default)