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
{{ message }}
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
I've just created a new branch ansiToHtml with some additions to support colored logs.
However, I am not really keen to merge this feature into master, since it requires to explicitly enable HTML rendering (it could be confusing to have rendered HTML inside logs...)
If you want, I think you can fork the repository, switch to the ansiToHtml branch and
then keep it up-to-date with upstream/master
Hello,
Nice project 👍
Should it be possible to 'prettify' logs ?
Especially ansi colors codes (https://en.wikipedia.org/wiki/ANSI_escape_code#Colors).
Here a sample nginx logs output from your log endpoint /api/v1/logs/:id/:container/:limit
Here "\u001b[0;36;1mnginx.1 | \u001b[0m" should display "nginx.1 | " in cyan (36) and bold (1).
You may use https://github.com/ralphbean/ansi2html in Python or https://github.com/rburns/ansi-to-html in Javascript.
Regards
Julien
The text was updated successfully, but these errors were encountered: