You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User profile is available. Using 'C:\Users\jerry\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
First, there are three types of console output here. Which is confusing.
Information: ...
Free text...
info: ...
Can we ensure our output consistently uses logging and emits the same output? Probably info:
Second, many lines convey nothing to the user. It is not info at all! These are FOR the developer.
Line 2Information: Config not provided. Trying to get default config based on DAB_ENVIRONMENT...
This comment should communicate what the correct environment variable to use is. We already do this with DAB-ENVIRONMENT. A message like this:
INFO: Environment variable DAB_CONFIG is (null), using argument -c/--config instead.
INFO: Argument -c/--config is (null), using default "dab-config.json" instead.
Line 3Information: Environment variable DAB_ENVIRONMENT is (null)
This output implies an error when there is none. (I realize it is INFO). It implies that a value that was expected is (null) and could be a problem when it is not. We can correct this with the following new message
INFO: Environment variable DAB_ENVIRONMENT is (null), using value in config file instead.
Line 4Loading config file from dab-config.json.
This should be an INFO log. This line tells the file name but not the parent: reference #1791
Line 5Information: Loaded config file: dab-config.json
Remove this line. Move to Debug. Ideally, just remove it.
⚠️ This post-event is not useful in any way other than to debug.
Line 6Information: Setting default minimum LogLevel: Debug for Development mode.
This line is written in such a way that could be misunderstood.
INFO: Setting LogLevel to Debug because Runtime Mode is set to Development.
INFO: Setting LogLevel to Information because Runtime Mode is set Production.
Line 7Starting the runtime engine...
This is another line that should be an INFO log. Otherwise OKAY
INFO: Starting Data API builder runtime engine
Line 8Loading config file from dab-config.json.
Remove this line!
⚠️ This line is an error. This has already occurred. #1792
Line 9info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[63]
Remove this line. Move to Debug. Ideally, just remove it.
⚠️ This cryptic event is not useful in any way other than to debug.
Line 10User profile is available. Using 'C:\Users\jerry\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Remove this line. Move to Debug. Ideally, just remove it.
⚠️ This cryptic event is not useful in any way other than to debug.
Line 12info: Azure.DataApiBuilder.Service.Startup[0]Successfully completed runtime initialization.
Remove this line. Move to Debug. Ideally, just remove it.
⚠️ This post-event is not useful in any way other than to debug.
Line 16info: Microsoft.Hosting.Lifetime[0]Hosting environment: Production
Remove this line. Move to Debug. Ideally, just remove it.
⚠️ This useless event is not useful in any way other than MAYBE to debug.
Line 17info: Microsoft.Hosting.Lifetime[0]Content root path: C:\Temp\dab
Remove this line. Move to Debug. Ideally, just remove it.
⚠️ This useless event is not useful in any way other than MAYBE to debug.
If you want to leave line 17 in, it should be the FIRST log in this list, not the last.
The default settings file AppSettings.json and its contents are generated automatically when creating an ASP.NET project. The files contents result in seeing the logging events with source:
What happened?
Standard
dab start
results in the following:Successfully completed runtime initialization.
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
Application started. Press Ctrl+C to shut down.
Hosting environment: Production
Content root path: C:\Temp\dab
First, there are three types of console output here. Which is confusing.
Can we ensure our output consistently uses logging and emits the same output? Probably
info:
Second, many lines convey nothing to the user. It is not info at all! These are FOR the developer.
Line 2
Information: Config not provided. Trying to get default config based on DAB_ENVIRONMENT...
This comment should communicate what the correct environment variable to use is. We already do this with DAB-ENVIRONMENT. A message like this:
Line 3
Information: Environment variable DAB_ENVIRONMENT is (null)
This output implies an error when there is none. (I realize it is INFO). It implies that a value that was expected is (null) and could be a problem when it is not. We can correct this with the following new message
Line 4
Loading config file from dab-config.json.
This should be an INFO log. This line tells the file name but not the parent: reference #1791
Line 5
Information: Loaded config file: dab-config.json
Remove this line. Move to
Debug
. Ideally, just remove it.Line 6
Information: Setting default minimum LogLevel: Debug for Development mode.
This line is written in such a way that could be misunderstood.
Line 7
Starting the runtime engine...
This is another line that should be an INFO log. Otherwise OKAY
Line 8
Loading config file from dab-config.json.
Remove this line!
Line 9
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[63]
Remove this line. Move to
Debug
. Ideally, just remove it.Line 10
User profile is available. Using 'C:\Users\jerry\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Remove this line. Move to
Debug
. Ideally, just remove it.Line 12
info: Azure.DataApiBuilder.Service.Startup[0]
Successfully completed runtime initialization.
Remove this line. Move to
Debug
. Ideally, just remove it.Line 16
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
Remove this line. Move to
Debug
. Ideally, just remove it.Line 17
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Temp\dab
Remove this line. Move to
Debug
. Ideally, just remove it.If you want to leave line 17 in, it should be the FIRST log in this list, not the last.
Version
Microsoft.DataApiBuilder 0.9.5-rc+73a02dcd3b85a73ac36a5675432a45b7a3cc4a7d
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
REST, GraphQL
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: