[x] This isn't an open-ended question (open a discussion if it is).
:computer: System information
Operating System: macOS
Data Safe Haven version: develop @ bd6b270
:package: Packages
List of packages
```none
Paste list of packages here
```
:no_entry_sign: Describe the problem
The from_ansi function actually strips ANSI information from text. It converts str -> rich.Text and then passes this to logger.info. However, at some point in the logger handling chain, the rich.Text object is converted to a string, stripping the markup information before it reaches the RichHandler.
Either passing the ANSI-formatted string directly, or converting this to Rich markup would avoid this problem.
:deciduous_tree: Log messages
Relevant log messages
```none
Your log details here
```
:recycle: To reproduce
Deploy an SRE and observe the lack of colour in the Pulumi output.
:white_check_mark: Checklist
:computer: System information
:package: Packages
List of packages
```none Paste list of packages here ```:no_entry_sign: Describe the problem
The
from_ansi
function actually strips ANSI information from text. It convertsstr -> rich.Text
and then passes this tologger.info
. However, at some point in thelogger
handling chain, therich.Text
object is converted to a string, stripping the markup information before it reaches theRichHandler
.Either passing the ANSI-formatted string directly, or converting this to Rich markup would avoid this problem.
:deciduous_tree: Log messages
Relevant log messages
```none Your log details here ```:recycle: To reproduce
Deploy an SRE and observe the lack of colour in the Pulumi output.