You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to strip the color formatting from a string. I set the color in the code depending on the context and send it to the logger. The logger sends it to the console and also to a log file. I am getting things like "�[39m�[22m" appearing in my log file. I would like to strip the color information before it gets logged to file.
Thanks.
The text was updated successfully, but these errors were encountered:
Hrmmm, I'm not really sure of the best approach. You could strip the escape codes back out, but there is probably a more elegant solution if you implement a new logging class.
Great module.
Is there a way to strip the color formatting from a string. I set the color in the code depending on the context and send it to the logger. The logger sends it to the console and also to a log file. I am getting things like "�[39m�[22m" appearing in my log file. I would like to strip the color information before it gets logged to file.
Thanks.
The text was updated successfully, but these errors were encountered: