appsettings.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "Port": 5050,
  3. "Id": 1,
  4. "Name": "AIP Gateway RESTFull Service",
  5. "Version": "1.0.0.0",
  6. "MipDataPath": "C:\\Temp\\App_Data\\mip_data99",
  7. "SourceFilePath": "C:\\Data\\Source\\",
  8. "TargetFilePath": "C:\\Data\\Target\\",
  9. "ConnectionStrings": {
  10. "DefaultConnection": "Server=115.91.94.42,11433;Uid=aipuser;Pwd=aipuser;Database=aipdb;MultipleActiveResultSets=true;TrustServerCertificate=True;"
  11. },
  12. "Serilog": {
  13. "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
  14. "MinimumLevel": {
  15. "Default": "Information",
  16. "Override": {
  17. "Microsoft": "Warning",
  18. "Microsoft.EntityFrameworkCore.Database.Command": "Warning"
  19. }
  20. },
  21. "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId", "WithExceptionDetails" ],
  22. "WriteTo": [
  23. {
  24. "Name": "Console",
  25. "Args": {
  26. "theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
  27. "outputTemplate": "[{Timestamp:HH:mm:ss.fff}] [{Level:u3}] {Message:lj} ({SourceContext}){NewLine}{Exception}"
  28. }
  29. },
  30. {
  31. "Name": "File",
  32. "Args": {
  33. "path": "c:\\Temp\\Logs\\AipGateway.API\\AipGateway.API-.log",
  34. "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] [{Level:u3}] {Message:lj} ({SourceContext}){NewLine}{Exception}",
  35. "rollOnFileSizeLimit": true,
  36. "rollingInterval": "Day",
  37. "fileSizeLimitBytes": 4194304,
  38. "retainedFileCountLimit": 10
  39. }
  40. }
  41. ]
  42. },
  43. "Logging": {
  44. "LogLevel": {
  45. "Default": "Information",
  46. "System": "Information",
  47. "Coravel": "Information",
  48. "Coravel.Scheduling.HostedService": "Information",
  49. "Microsoft": "Warning",
  50. "Microsoft.AspNetCore": "Information",
  51. "Microsoft.Hosting.Lifetime": "Information",
  52. "Microsoft.AspNetCore.Mvc": "Warning",
  53. "Microsoft.AspNetCore.Routing": "Warning",
  54. "Microsoft.AspNetCore.Hosting": "Warning"
  55. }
  56. },
  57. "AllowedHosts": "*"
  58. }