add using XLoggingService ...
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Net.Http;
|
|||||||
using xAiMcpServer.DI;
|
using xAiMcpServer.DI;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using xLoggingService.DI;
|
||||||
using xIdentityService.DI;
|
using xIdentityService.DI;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xAiService.Extensions;
|
using xAiService.Extensions;
|
||||||
@@ -42,6 +43,10 @@ namespace xAiMcpServer
|
|||||||
services.AddXAppConfiguration(Configuration);
|
services.AddXAppConfiguration(Configuration);
|
||||||
var appConfiguration = services.GetRegisteredService<XAppConfiguration>();
|
var appConfiguration = services.GetRegisteredService<XAppConfiguration>();
|
||||||
|
|
||||||
|
//
|
||||||
|
// Register Logging Service ...
|
||||||
|
services.AddXLoggingService(Configuration);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Register Allowed Origins ...
|
// Register Allowed Origins ...
|
||||||
services.AddXCors(appConfiguration.AllowedOrigins);
|
services.AddXCors(appConfiguration.AllowedOrigins);
|
||||||
|
|||||||
+33
-1
@@ -33,7 +33,7 @@
|
|||||||
"DefaultClientTimeout": -1
|
"DefaultClientTimeout": -1
|
||||||
},
|
},
|
||||||
"LinkExtractionToolConfiguration": {
|
"LinkExtractionToolConfiguration": {
|
||||||
"MaxLinks": 5,
|
"MaxLinks": 5,
|
||||||
"MaxChars": 8000
|
"MaxChars": 8000
|
||||||
},
|
},
|
||||||
"WebSearchToolConfiguration": {
|
"WebSearchToolConfiguration": {
|
||||||
@@ -46,6 +46,38 @@
|
|||||||
"HtmlEndpoint": "https://html.duckduckgo.com/html/",
|
"HtmlEndpoint": "https://html.duckduckgo.com/html/",
|
||||||
"LiteEndpoint": "https://lite.duckduckgo.com/lite/"
|
"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": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Microsoft": "Warning",
|
"Microsoft": "Warning",
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../Modules/xCommons/xCommons.csproj" />
|
<ProjectReference Include="../Modules/xCommons/xCommons.csproj" />
|
||||||
<ProjectReference Include="../Modules/xAiService/xAiService.csproj" />
|
<ProjectReference Include="../Modules/xAiService/xAiService.csproj" />
|
||||||
|
<ProjectReference Include="../Modules/xLoggingService/xLoggingService.csproj" />
|
||||||
<ProjectReference Include="../Modules/xIdentityHelper/xIdentityHelper.csproj" />
|
<ProjectReference Include="../Modules/xIdentityHelper/xIdentityHelper.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user