data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

Add File Sink

Open RubenCerna2079 opened this issue 10 months ago • 0 comments

Add a file sink that will allow the information from the log to be written into the file. Additionally, a new file property will be added to the configuration file that will be under runtime and that can be enabled in order for the file to receive the logging information.

Configuration File with Sink

{
  "runtime": {
      ...
      "telemetry": {
          "application-insights": {
              "enabled": true,
              "connection-string": "@env('app-insights-connection-string')"
          }
      },
      "file": {
          "enabled": true,
          "path": "/logs/dab-log.txt",
          "rollingInterval": "Day",
          "retainedFileCountLimit": 7,
          "fileSizeLimitBytes": 10485760
       },
      ...
  }
}

RubenCerna2079 avatar Feb 13 '25 03:02 RubenCerna2079