linuxserver / docker-ci

Container for running basic sanity checks on containers post build and before upload
GNU General Public License v3.0
5 stars 6 forks source link

render logs with ansi2html #27

Closed hydazz closed 1 year ago

hydazz commented 1 year ago

linuxserver.io



Description:

container logs are passed to ansi2html which outputs them alongside the index, as the file {tag}.log.html this allows the logs to be properly formatted any easily read (with colours!)

the container logs dropdown in the CI results has been replaced with a href to directly view the logs.

Screenshot 2023-01-30 at 6 41 57 pm

they look something like this, and are rendered in the browser with pure html:

Screenshot 2023-01-30 at 6 32 09 pm

I'm not going to pretend to be some insane python programmer, the converter has just been placed where it was easiest to access logblob

Benefits of this PR and context:

No benefits @nemchik thought it was cool, makes reading the logs easier

How Has This Been Tested?

...

Source / References:

https://github.com/pycontribs/ansi2html

github-actions[bot] commented 1 year ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This pull request is locked due to inactivity