feat: add setup/logging page

This commit is contained in:
2024-06-11 00:27:18 +03:00
parent d764e84726
commit 99a77999fb
2 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<h1>Настройка логирования</h1>
<hr/>
<p class="mat-body-2 secondary">
Настройте систему логирования как будет удобно для отображения.
Можно настроить путь к файлу, имена файлов или вовсе отключить логирование в файл.
</p>
<form [formGroup]="loggingSettings">
<p>
Введите данные для настройки системы логирования:
</p>
<div style="display:flex; flex-direction: column;">
<mat-checkbox
matTooltip='Использовать ли запись логов системы в файл'
formControlName="enabled"
(change)="isEnabledLoggingChange($event.checked)">
Включить логирование в файл
</mat-checkbox>
<mat-form-field color="accent">
<mat-label>Путь к логам</mat-label>
<input matInput
matTooltip="Укажите путь к директории в зависимости от вашей системы"
formControlName="logPath">
</mat-form-field>
<mat-form-field color="accent">
<mat-label>Название файла</mat-label>
<input matInput
matTooltip="Укажите название файла, в который будут записаны логи"
formControlName="logName">
</mat-form-field>
</div>
</form>
<div style="display: flex; justify-content: center;">
<button mat-flat-button color="accent" (click)="skipButton()">Пропустить</button>
</div>