add using XLoggingService ...
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Net.Http;
|
||||
using xAiMcpServer.DI;
|
||||
using Newtonsoft.Json;
|
||||
using System.Reflection;
|
||||
using xLoggingService.DI;
|
||||
using xIdentityService.DI;
|
||||
using xCommons.Extensions;
|
||||
using xAiService.Extensions;
|
||||
@@ -42,6 +43,10 @@ namespace xAiMcpServer
|
||||
services.AddXAppConfiguration(Configuration);
|
||||
var appConfiguration = services.GetRegisteredService<XAppConfiguration>();
|
||||
|
||||
//
|
||||
// Register Logging Service ...
|
||||
services.AddXLoggingService(Configuration);
|
||||
|
||||
//
|
||||
// Register Allowed Origins ...
|
||||
services.AddXCors(appConfiguration.AllowedOrigins);
|
||||
|
||||
+33
-1
@@ -33,7 +33,7 @@
|
||||
"DefaultClientTimeout": -1
|
||||
},
|
||||
"LinkExtractionToolConfiguration": {
|
||||
"MaxLinks": 5,
|
||||
"MaxLinks": 5,
|
||||
"MaxChars": 8000
|
||||
},
|
||||
"WebSearchToolConfiguration": {
|
||||
@@ -46,6 +46,38 @@
|
||||
"HtmlEndpoint": "https://html.duckduckgo.com/html/",
|
||||
"LiteEndpoint": "https://lite.duckduckgo.com/lite/"
|
||||
},
|
||||
"LoggingServiceConfiguration": {
|
||||
"Enabled": true,
|
||||
"MinimumLevel": "Information",
|
||||
"Queue": {
|
||||
"Enabled": true,
|
||||
"Capacity": 10000,
|
||||
"ShutdownTimeoutSeconds": 10
|
||||
},
|
||||
"File": {
|
||||
"Enabled": true,
|
||||
"Format": "Json",
|
||||
"Directory": "./Logs",
|
||||
"RetainedFileCountLimit": 30,
|
||||
"MinimumLevel": "Information",
|
||||
"FileName": "xAiMcpServer-.log"
|
||||
},
|
||||
"Database": {
|
||||
"Enabled": false,
|
||||
"TableName": "XLogs",
|
||||
"AutoCreateTable": true,
|
||||
"MinimumLevel": "Warning",
|
||||
"Provider": "Microsoft.Data.Sqlite",
|
||||
"ConnectionString": "Filename=./Db/XLogs.db"
|
||||
},
|
||||
"Event": {
|
||||
"Enabled": false,
|
||||
"MinimumLevel": "Error",
|
||||
"Sender": "xAiMcpServer",
|
||||
"Topic": "application-logs",
|
||||
"Action": "ApplicationLogCreated"
|
||||
}
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Microsoft": "Warning",
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../Modules/xCommons/xCommons.csproj" />
|
||||
<ProjectReference Include="../Modules/xAiService/xAiService.csproj" />
|
||||
<ProjectReference Include="../Modules/xLoggingService/xLoggingService.csproj" />
|
||||
<ProjectReference Include="../Modules/xIdentityHelper/xIdentityHelper.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user