fullstack-build / tslog

📝 tslog - Universal Logger for TypeScript and JavaScript
https://tslog.js.org
MIT License
1.35k stars 63 forks source link

Bug: [BUG] Getting Control Characters in browser (FF and Chrome) #262

Open Industrial opened 1 year ago

Industrial commented 1 year ago

Describe the bug Control Characters instead of colors.

To Reproduce

�[37m2023-09-14 18:26:34.456�[39m�[0m�[0m   �[34m�[1mINFO�[22m�[39m�[0m�[0m �[37m�[39m�[0m�[0m�[1m�[37m�[39m�[22m�[0m�[0m   2023-09-14T14:15:00.000Z endDate

Expected behavior Colors

Screenshots

Additional context Firefox v117.0 Chromium v116.0.5845.179

Node.js Version Browser only.

OS incl. Version NixOS Linux

trunkyredstone commented 1 year ago

Can reproduce on Firefox v112.0 / Ubuntu 23.10

zanaBizz commented 1 year ago

Still an issue on Firefox v120. Are there any ETA's when this will be tackled and fixed? It really hinders the use of tslog on firefox

trunkyredstone commented 1 year ago

Found this related issue for firefox. Putting it here for reference - https://bugzilla.mozilla.org/show_bug.cgi?id=1720116. It also links to https://github.com/whatwg/console/issues/197 (Supposedly)