mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
<pngx-page-header title="Logs" i18n-title>
|
|
<div class="form-check form-switch" (click)="toggleAutoRefresh()">
|
|
<input class="form-check-input" type="checkbox" role="switch" id="autoRefreshSwitch" [attr.checked]="autoRefreshInterval">
|
|
<label class="form-check-label" for="autoRefreshSwitch" i18n>Auto refresh</label>
|
|
</div>
|
|
</pngx-page-header>
|
|
|
|
<ul ngbNav #nav="ngbNav" [(activeId)]="activeLog" (activeIdChange)="reloadLogs()" class="nav-tabs">
|
|
@for (logFile of logFiles; track logFile) {
|
|
<li [ngbNavItem]="logFile">
|
|
<a ngbNavLink>
|
|
{{logFile}}.log
|
|
</a>
|
|
</li>
|
|
}
|
|
@if (isLoading || !logFiles.length) {
|
|
<div class="ps-2 d-flex align-items-center">
|
|
<div class="spinner-border spinner-border-sm me-2" role="status"></div>
|
|
@if (!logFiles.length) {
|
|
<ng-container i18n>Loading...</ng-container>
|
|
}
|
|
</div>
|
|
}
|
|
</ul>
|
|
|
|
<div [ngbNavOutlet]="nav" class="mt-2"></div>
|
|
|
|
<div class="bg-dark p-3 text-light font-monospace log-container" #logContainer>
|
|
@if (isLoading && logFiles.length) {
|
|
<div>
|
|
<div class="spinner-border spinner-border-sm me-2" role="status"></div>
|
|
<ng-container i18n>Loading...</ng-container>
|
|
</div>
|
|
}
|
|
@for (log of logs; track log) {
|
|
<p
|
|
class="m-0 p-0 log-entry-{{getLogLevel(log)}}"
|
|
>{{log}}</p>
|
|
}
|
|
</div>
|