Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Scroll and Open specific log entry #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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