FoldingAtHome / fah-web-client-bastet

Folding@home client frontend
GNU General Public License v3.0
20 stars 7 forks source link

Error and Warning color coding in log section does not apply to Windows client #211

Open muziqaz opened 3 weeks ago

muziqaz commented 3 weeks ago

In Linux client, Errors are color coded as red, and Warnings as yellow. This is extremely useful when troubleshooting or scrolling through the logs within fahclient web ui. Windows clients for me are color blind. Would be great to have same color coding. Linux linux

Windows windows

Thanks

jcoffland commented 1 week ago

The reason is that the Windows console cannot interpret ANSI color codes and so you see a bunch of garbage on Windows with color logging enabled. However, in v8, Web Control reinterprets the ANSI codes from the log as HTML.

You can actually manually turn color logging on by adding a config.xml with at least this:

<config>
  <log-color/>
</config>

On Windows it's just defaulted to off. It's probably time to default log-color on for Windows since few people are looking at the logs directly. One issue is that if you open the log files in Windows with most editors you will see all the ugly ANSI color codes which make it almost unreadable.

muziqaz commented 1 week ago

Would it be easier to do different font? If that is even possible

jcoffland commented 1 week ago

There are no fonts in text files. So not possible.