Skip to content

[Feature] Scroll and Open specific log entry#58

Closed
makss wants to merge 2 commits into
Laravel-Backpack:mainfrom
makss:collapse_scroll_and_open
Closed

[Feature] Scroll and Open specific log entry#58
makss wants to merge 2 commits into
Laravel-Backpack:mainfrom
makss:collapse_scroll_and_open

Conversation

@makss

@makss makss commented Dec 29, 2022

Copy link
Copy Markdown
Contributor

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

pxpm commented Jan 20, 2023

Copy link
Copy Markdown
Contributor

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

@pxpm

pxpm commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for your effort here @makss and sorry it took sometime to get back into this.

I've merged #73 that should address this issue and much more 👍

Closing this then, once again, thank you very much for pushing for this feature 🙏

Cheers

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

Development

Successfully merging this pull request may close these issues.

4 participants