Skip to content

widgets: enhance Live Log widget#10086

Open
Greelan wants to merge 2 commits intoopnsense:masterfrom
Greelan:logwidget
Open

widgets: enhance Live Log widget#10086
Greelan wants to merge 2 commits intoopnsense:masterfrom
Greelan:logwidget

Conversation

@Greelan
Copy link
Copy Markdown
Contributor

@Greelan Greelan commented Apr 4, 2026

Context and approach are detailed in #9684

Closes #9684

Depends on 1216d60 and 7cfb03b

Copy link
Copy Markdown
Member

@AdSchellevis AdSchellevis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Greelan the widget looks nice! I made some comments in the PR, but leave the Javascript code to review for @swhite2 next week.

Comment thread src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/LogController.php Outdated
Comment thread src/opnsense/www/js/widgets/LiveLog.js Outdated
AdSchellevis added a commit that referenced this pull request Apr 6, 2026
Although this isn't a full implementation yet, it can help callers that need to access the menu system.
In the long run it might be practical if this class would also construct the menu system, so we can add some flexibility there.
Uses client-side DOM for determining log endpoints, doesn't require any default target access, allows options for severity and search filter and variable log lines to show, which are displayed in summary in widget, and uses true log tailing plus backfill
<severityinformational>Informational</severityinformational>
<severitydebug>Debug</severitydebug>
<searchfilter>Search filter</searchfilter>
<searchfilterplaceholder>dhcp error</searchfilterplaceholder>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you're trying to do here, but perhaps it looks a little out of place. Maybe just nothing? Not sure myself

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The aim was simply to show format of the filter text (space separated words). I'm not wedded to the specific content. But having nothing for a placeholder will not give any guidance. Afaik help text is not available in widget options. And I didn't want to clutter the heading with format guidance.

@Greelan Greelan closed this Apr 12, 2026
@Greelan Greelan deleted the logwidget branch April 12, 2026 05:57
@Greelan Greelan restored the logwidget branch April 12, 2026 09:30
@Greelan Greelan reopened this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Live Log widget improvements

3 participants