Skip to content

Commit efcebf2

Browse files
Fix links
1 parent d033dc8 commit efcebf2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/core/extensions/log-sampling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ There are several ways to configure random probabilistic sampling with its rules
6464

6565
Create a configuration section in your _appsettings.json_, for example:
6666

67-
:::code language="json" source="snippets/logging/logging-sampling/file-config/appsettings.json" :::
67+
:::code language="json" source="snippets/logging/log-sampling/file-config/appsettings.json" :::
6868

6969
The preceding configuration:
7070

@@ -119,7 +119,7 @@ The preceding configuration:
119119

120120
For basic scenarios, you can configure a single probability value that applies to all logs at or below a specified level:
121121

122-
:::code language="csharp" source="snippets/logging/logging-sampling/Program.cs" range="14-15":::
122+
:::code language="csharp" source="snippets/logging/log-sampling/Program.cs" range="14-15":::
123123

124124
The code above registers the sampler which would sample 10% of <xref:Microsoft.Extensions.Logging.LogLevel.Warning> logs and 1% of <xref:Microsoft.Extensions.Logging.LogLevel.Information> (and below) logs.
125125
If the configuration did not have the rule for <xref:Microsoft.Extensions.Logging.LogLevel.Information>, it would have sampled 10% of <xref:Microsoft.Extensions.Logging.LogLevel.Warning> logs and all levels below, including <xref:Microsoft.Extensions.Logging.LogLevel.Information>.

docs/fundamentals/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ items:
10971097
href: ../core/extensions/high-performance-logging.md
10981098
displayName: high-performance logging,high-performance log,high-performance logging provider,high-performance log provider
10991099
- name: Log Sampling
1100-
href: ../../core/extensions/log-sampling.md
1100+
href: ../core/extensions/log-sampling.md
11011101
- name: Console log formatting
11021102
href: ../core/extensions/console-log-formatter.md
11031103
displayName: console log formatting,console log formatter,console log formatting provider,console log formatter provider

0 commit comments

Comments
 (0)