Skip to content

Consider adding a note about dot (.) symbols in the environment variable names #30294

@mmarinchenko

Description

@mmarinchenko

The Set log level by command line, environment variables, and other configuration section provides the following example:

setx Logging__Console__LogLevel__Microsoft.Hosting.Lifetime Trace /M

This approach does not work in most Unix shells:

export Logging__Console__LogLevel__Microsoft.Hosting.Lifetime Trace

-bash: export: `Logging__Console__LogLevel__Microsoft.Hosting.Lifetime': not a valid identifier

There is a note about this on a similar page in the .NET documentation. But I had to spend some time to find it.

It would also be useful to add this note to the ASP.NET Core documentation. Or even put documentation about common concepts, such as configuration and logging, in one place to eliminate duplication.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 159037

Metadata

Metadata

Assignees

Labels

Source - Docs.msDocs Customer feedback via GitHub Issuedoc-bugseQUESTeredIdentifies that an issue has been imported into Quest.

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions