Skip to content

Conversation

makss
Copy link
Contributor

@makss makss commented Dec 29, 2022

WHY

BEFORE - What was wrong? What was happening before this PR?

It is not possible to link to a specific entry in the log file.

AFTER - What is happening after this PR?

Now you can send a link to a specific entry in the log file to someone by mail or add it to a bug report.

HOW

How did you achieve that, in technical terms?

The log file output uses reverse sorting. Therefore, reverse numbering of entries in the log file was also made. Adding new entries will not break previous links.

@pxpm
Copy link
Contributor

pxpm commented Jan 20, 2023

Hey @makss thanks for the PR 🙏 Sorry it took some time to get back here!

Indeed I think it's a very clever solution to allow developer to share links to specific log entries. 👏

I am ok with the JS part, but I am afraid I don't agree with html changes.

Why do we need them ? To re-order the logs ? If that's the case woudn't it be better to create some extra configuration like logOrder => 'asc' (defaults to the current order, but developer can configure it) ?

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants