From 10bf53adec13d38721be7f1ec23ece895c063aa8 Mon Sep 17 00:00:00 2001
From: Polianin Nikita
+ Также вы можете настроить интеграцию с Seq. + Введите необходимые данные и мы отправим тестовый лог на сервер Seq. Его уровень будет Warning. + Если тестовый лог не появился вернитесь на данный шаг и перепроверьте данные. +
diff --git a/src/pages/setup/logging/logging.component.ts b/src/pages/setup/logging/logging.component.ts index 4332420..20f5f78 100644 --- a/src/pages/setup/logging/logging.component.ts +++ b/src/pages/setup/logging/logging.component.ts @@ -45,7 +45,9 @@ export class LoggingComponent { this.loggingSettings = this.formBuilder.group({ enabled: [true, Validators.required], logPath: [''], - logName: [''] + logName: [''], + seqServer: [''], + seqKey: [''] } ); @@ -56,9 +58,11 @@ export class LoggingComponent { this.navigationService.nextButtonAction = () => { return this.api.setLogging({ - "enableLogToFile": this.loggingSettings.get('enabled')?.value, - "logFileName": this.loggingSettings.get('logName')?.value, - "logFilePath": this.loggingSettings.get('logPath')?.value + enableLogToFile: this.loggingSettings.get('enabled')?.value, + logFileName: this.loggingSettings.get('logName')?.value, + logFilePath: this.loggingSettings.get('logPath')?.value, + apiServerSeq: this.loggingSettings.get('seqServer')?.value, + apiKeySeq: this.loggingSettings.get('seqKey')?.value } ); }; @@ -73,6 +77,8 @@ export class LoggingComponent { this.loggingSettings.get('enabled')?.setValue(x.enableLogToFile); this.loggingSettings.get('logName')?.setValue(x.logFileName); this.loggingSettings.get('logPath')?.setValue(x.logFilePath); + this.loggingSettings.get('seqServer')?.setValue(x.apiServerSeq); + this.loggingSettings.get('seqKey')?.setValue(x.apiKeySeq); }); } } diff --git a/src/pages/setup/summary/summary.component.html b/src/pages/setup/summary/summary.component.html index dcf0d79..6b5b0b0 100644 --- a/src/pages/setup/summary/summary.component.html +++ b/src/pages/setup/summary/summary.component.html @@ -163,6 +163,16 @@ Путь к файлу журнала: {{ loggingConfig.logFilePath }} } + @if (loggingConfig.apiServerSeq) { +