ray-chew / pyBELLA

A Python-based Blended sEamLess soLver for Atmospheric dynamics coupled to an ensemble data assimilation engine
https://ray-chew.github.io/pyBELLA/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Make logger work with coloured stdouts #21

Open ray-chew opened 5 months ago

ray-chew commented 5 months ago

The logger output looks a bit wonky when the text is coloured, e.g.,

Next tout = 600.000
Starting forecast...
For ensemble member = 0...

This link might be useful to format the logger for coloured text: https://stackoverflow.com/questions/13733552/logger-configuration-to-log-to-file-and-print-to-stdout