{
  "RECOMPUTE_ALERT_ON_RESTART": false,
  "DB_NAME": "Approv2",
  "DATA_SOURCE": "LP-0927\\SQLSERVER2019",
  "DB_USER": "boto",
  "DB_PASS": "boto24",
  "HOST": "http://localhost",
  "PORT": 1433,
  "Kestrel": {
    "Endpoints": {
      "Http": {
        "Url": "http://localhost:5001"
      }
    }
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "Serilog": {
    "Using": [
      "Serilog.Sinks.Console",
      "Serilog.Sinks.File"
    ],
    "MinimumLevel": {
      "Default": "Information", // Default level for all logs
      "Override": {
        "Microsoft": "Warning", // Suppress verbose logs from Microsoft components
        "System": "Warning"
      }
    },
    "WriteTo": [
      { // This is the main logger, writing to the console
        "Name": "Console",
        "Args": {
          "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
        }
      },
      { // This is the main logger, writing to the general log file
        "Name": "File",
        "Args": {
          "path": "logs/app-.txt",
          "rollingInterval": "Day",
          "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
        }
      },
      { // This is the sub-logger, writing only errors to a separate file
        "Name": "Logger",
        "Args": {
          "configureLogger": {
            "MinimumLevel": "Warning", // Filter this logger to capture only Warning, Error, and Fatal
            "WriteTo": [
              {
                "Name": "File",
                "Args": {
                  "path": "logs/errors-.txt", // The separate file for errors
                  "rollingInterval": "Day",
                  "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
                }
              }
            ]
          }
        }
      }
    ],
    "Enrich": [
      "FromLogContext",
      "WithMachineName",
      "WithProcessId",
      "WithThreadId"
    ],
    "Properties": {
      "Application": "ProjetAppro"
    }
  },
  "ClientUrl": "http://localhost:3001"
}
