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

Have `log-level` property in runtime config

Open abhishekkumams opened this issue 2 years ago • 3 comments

This Issue is to propose a new property called log-level under the runtime section of dab config file to specify the minimum logging level in our Application. for example if it is set to Information, trace and debug logs won't be displayed while warning and errors along with Information Logs will show up. Having LogLevel specified in the config file enable users to specify the logLevel when CLI is not envolved(where we can use --LogLevel).

{
  "runtime": {
    ...
    "log-level": "Information",
    ...
}

This logLevel will be used for logging in the console as well as sending logs to Applicaiton Insights.

abhishekkumams avatar Aug 23 '23 04:08 abhishekkumams

#1829

seantleonard avatar Nov 16 '23 16:11 seantleonard

Moving this + hot reload related tasks to post GA -> tracking via 1.2rc milestone.

seantleonard avatar Mar 07 '24 17:03 seantleonard

Lower priority because you can set log level via argument to dab.exe process

$ ./Microsoft.DataApiBuilder --LogLevel Information

seantleonard avatar May 17 '24 00:05 seantleonard