diff --git a/lib/molecule/console.py b/lib/molecule/console.py index 386819d97f..5a582b2af0 100644 --- a/lib/molecule/console.py +++ b/lib/molecule/console.py @@ -4,6 +4,7 @@ from typing import Any from rich.console import Console +from rich.style import Style from rich.theme import Theme theme = Theme( @@ -13,6 +14,13 @@ "danger": "bold red", "scenario": "green", "action": "green", + "logging.level.notset": Style(dim=True), + "logging.level.debug": Style(color="white", dim=True), + "logging.level.info": Style(color="blue"), + "logging.level.warning": Style(color="red"), + "logging.level.error": Style(color="red", bold=True), + "logging.level.critical": Style(color="red", bold=True), + "logging.level.success": Style(color="green", bold=True), } )