-
Notifications
You must be signed in to change notification settings - Fork 2
LogBar
Viames Marino edited this page Feb 23, 2026
·
1 revision
Pair\Helpers\LogBar is Pair’s request debug timeline for events, SQL queries, warnings, and errors.
getInstance(): LogBarevent(string $description, string $type = 'notice', ?string $subtext = null): voidrender(): stringcanBeShown(): booldisable(): void
Useful counters:
getErrorCount(): intgetWarningCount(): intgetQueryCount(): int
Track custom event:
\Pair\Helpers\LogBar::event('Import started', 'notice');Track slow operation:
\Pair\Helpers\LogBar::event('External API call', 'api', 'provider-x');Render in template/layout:
echo \Pair\Helpers\LogBar::getInstance()->render();- DB layer automatically writes query events to LogBar.
- Visibility depends on user permissions and options.
See also: Database, Logger, Application.