appsettings.json 2.0 KB

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