serilog-aspnetcore icon indicating copy to clipboard operation
serilog-aspnetcore copied to clipboard

How do I exclude package information?

Open Hiprox opened this issue 1 year ago • 1 comments

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"
    }
  }
}

Hiprox avatar Apr 09 '24 05:04 Hiprox

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!

nblumhardt avatar Apr 10 '24 00:04 nblumhardt