Log Symbols provides colored symbols (like ✓, ✖, ℹ, ⚠) for various log levels in Python, enhancing terminal output readability. The current version is 0.0.14, with the last release in August 2019, indicating a stable but not actively developed library. It includes fallbacks for Windows CMD, which has a limited character set.
pip install log-symbolsVerified import paths — ran on the pinned version, not inferred.
Import `LogSymbols` to access symbols as attributes (e.g., `LogSymbols.success`), or import individual symbols directly for concise usage. The library automatically handles appropriate symbol rendering for different terminals, including fallbacks for Windows CMD.
Manually prepend the desired symbol to your log message string when using Python's `logging` module or other logging frameworks.
Consider if the existing functionality meets your needs. For advanced terminal output or active development, explore more recently maintained alternatives if available.
Always convert messages to strings before concatenating with `log_symbols`. For example: `LogSymbols.info + str(your_variable)`.
Install the package using pip: `pip install log_symbols`
Use `from log_symbols import LogSymbols` to directly import the `LogSymbols` enum, or if you keep `import log_symbols`, access the enum as `log_symbols.LogSymbols` (e.g., `log_symbols.LogSymbols.SUCCESS.value`).
Use the correct uppercase casing for the symbol names: `LogSymbols.SUCCESS.value`.
Use a Unicode-compatible terminal like Windows Terminal, PowerShell, or Git Bash. If using CMD, ensure the font is set to a Unicode-aware font (e.g., Consolas) and try setting the console's codepage to UTF-8 by running `chcp 65001` before executing your Python script.
No dependency data recorded yet.