appsettings.json 2.0 KB

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