Skip to main content
Version: Current

Log Viewer

Displays structured application logs with filtering by level.

Preview ยท Log Viewer

Codeโ€‹

<div class="table" style="font-size:0.8rem">
<table>
<thead><tr><th>Time</th><th>Level</th><th>Message</th></tr></thead>
<tbody>
<tr><td style="color:var(--muted-foreground)">14:23:01</td><td><span class="badge success">INFO</span></td><td>Tenant Acme Corp authenticated</td></tr>
<tr><td style="color:var(--muted-foreground)">14:23:05</td><td><span class="badge warning">WARN</span></td><td>Rate limit approaching for Globex</td></tr>
<tr><td style="color:var(--muted-foreground)">14:23:09</td><td><span class="badge danger">ERROR</span></td><td>DB connection timeout on shard 2</td></tr>
</tbody>
</table>
</div>

Propsโ€‹

PropTypeDefaultDescription
logsLogEntry[]requiredLog entries to display
maxHeightstring'500px'Max height of the scrollable log list
onLogClick(log: LogEntry) => voidโ€”Called when a log entry is clicked
autoScrollbooleanโ€”Auto-scroll to newest entry

TypeScript interfacesโ€‹

interface LogEntry {
id: string;
timestamp: string; // ISO 8601
level: 'debug' | 'info' | 'warn' | 'error' | 'fatal';
message: string;
source?: string;
metadata?: Record<string, any>;
}
Version history

See the Changelog for version history and breaking changes.