Azure / Azure/data-api-builder

[Enh]: Let's consider some default `log-level` values in `dab init`.

Open
#3,270 0 comments 0 reactions 0 assignees View on GitHub
2.x cli needs discussion
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

## What?

Observe and remove needless namespaces in the `dab start` output.

## Why?

We can be smart about this and reduce the noise in `dab start`.

## How?

Limit, do not eliminate. Allow developer to change after `dab init`.

```json
{
"log-level": {
"Select-Namespace": "warning"
}
}
```

### Ideal output

```
C:\Temp\dab-todo-test>dab start -c "dab-config.json"
info: Microsoft.DataApiBuilder 2.0.0
info: User provided config file: dab-config.json
info: Now listening on: http://localhost:5000
info: Now listening on: https://localhost:5001
```

Data API builder Preamble

```
info: Microsoft.DataApiBuilder 2.0.0
info: User provided config file: dab-config.json
```

Data API builder Postlude

```
info: Now listening on: http://localhost:5000
info: Now listening on: https://localhost:5001
```

## Candidates

- `Azure.DataApiBuilder.Core: Warning`
- `Azure.DataApiBuilder.Service: Warning`
- `Microsoft.AspNetCore.DataProtection: Warning`
- `Microsoft.AspNetCore.Mvc: Warning`
- `Microsoft.Hosting: Warning`
- `Microsoft.Extensions.Hosting: Warning`

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.