serilog / serilog-aspnetcore

Serilog integration for ASP.NET Core
Apache License 2.0
1.31k stars 205 forks source link

How do I exclude package information? #371

Closed Hiprox closed 3 months ago

Hiprox commented 6 months ago

I don't want to see the information highlighted in red at the Verbose logging level. How can I exclude it? What should I add to Overriders? This information does not make any sense to gRPC. image

"Logging": {
  "LogLevel": {
    "Default": "Trace",
    "System": "Information",
    "Microsoft":  "Information",
    "Microsoft.AspNetCore": "Warning"
  }
},
"Serilog": {
  "MinimumLevel": {
    "Default": "Verbose",
    "Overriders": {
      "System": "Warning",
      "Microsoft": "Information",
      "Microsoft.Hosting.Lifetime": "Warning",
      "Microsoft.AspNetCore": "Warning"
    }
  }
}
nblumhardt commented 5 months ago

Hi! I'd guess those are from a logger with a name like "Grpc" or "Google" - not sure without seeing more of the codebase. This one is a good question for Stack Overflow's serilog tag, where folks will likely have more time to work through the details with you. HTH!