{"id":21521,"library":"lib-log-utils","title":"lib-log-utils","description":"A utility library for colored log messages and banners from commandline and Python. Current version 1.4.15, supports Python >=3.8.0, actively maintained.","status":"active","version":"1.4.15","language":"python","source_language":"en","source_url":"https://github.com/bitranox/lib_log_utils.git","tags":["logging","colors","banners","utilities"],"install":[{"cmd":"pip install lib-log-utils","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"Correct import path.","wrong":"","symbol":"LogUtil","correct":"from lib_log_utils import LogUtil"},{"note":"Correct import path for color formatting.","wrong":"","symbol":"ColorLogFormatter","correct":"from lib_log_utils import ColorLogFormatter"},{"note":"Function to print banners.","wrong":"","symbol":"banner","correct":"from lib_log_utils import banner"}],"quickstart":{"code":"from lib_log_utils import LogUtil\n\nlog = LogUtil()\nlog.info('Hello, colored world!')\nlog.success('Task completed')\nlog.warning('Be careful')\nlog.error('Something went wrong')","lang":"python","description":"Basic usage: create a LogUtil instance and use .info(), .success(), .warning(), .error() methods with colored output."},"warnings":[{"fix":"Configure LogUtil with stream parameter: LogUtil(stream=sys.stderr) for error logging.","message":"LogUtil by default logs to stdout; ensure your application does not interfere with stderr expectations.","severity":"gotcha","affected_versions":"all"},{"fix":"Set environment variable LOG_UTILS_NO_COLOR=1 to disable colors, or install `colorama` for Windows support.","message":"Coloring may not work in all terminals or Windows Command Prompt without ANSI support.","severity":"gotcha","affected_versions":"all"},{"fix":"Use banner(stream=some_stream) to redirect output.","message":"The banner function prints to stdout and uses special characters; may cause issues in logging pipelines.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `from lib_log_utils import LogUtil` (with underscores).","cause":"Package import name uses underscores, not hyphens.","error":"ModuleNotFoundError: No module named 'lib_log_utils'"},{"fix":"Ensure version >= 1.4.0 and use `LogUtil` (capital L, capital U).","cause":"Outdated version or incorrect spelling.","error":"ImportError: cannot import name 'LogUtil' from 'lib_log_utils'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}