Skip to content

Commit a6aae79

Browse files
authored
Short note on environment variable support [Skip CI]
1 parent a4dfbd2 commit a6aae79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,14 @@ This is useful in ASP.NET Core applications, which will often specify minimum le
8080
}
8181
}
8282
```
83+
84+
### Environment variables
85+
86+
If your application enables the environment variable configuration source (`AddEnvironmentVariables()`) you can add or override Serilog configuration through the environment.
87+
88+
For example, to set the minimum log level using the `Windows` command prompt:
89+
90+
```
91+
set Serilog:MinimumLevel=Debug
92+
dotnet run
93+
```

0 commit comments

Comments
 (0)