Skip to content

Commit efcee42

Browse files
HttpLogging sample: do not log favicon.ico (#156)
* Do not log favicon.ico
1 parent 9b22af4 commit efcee42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Telemetry/Logging/HttpLogging/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public static void ConfigureServices(IServiceCollection services)
4343
// Here we specify which HTTP paths we want to exclude from logging.
4444
// We can exclude, for example, health check endpoints, "favicon.ico", etc.
4545
options.ExcludePathStartsWith.Add("/home");
46+
options.ExcludePathStartsWith.Add("/favicon.ico");
4647

4748
// Here we specify data classification for HTTP route parameters:
4849
options.RouteParameterDataClasses.Add("chatId", DataTaxonomy.PrivateData);

0 commit comments

Comments
 (0)