rebus-org / Rebus.Microsoft.Extensions.Logging

:bus: Microsoft Logging Extensions integration for Rebus
https://mookid.dk/category/rebus
Other
3 stars 7 forks source link

How to set log levels? #12

Closed woeterman94 closed 6 months ago

woeterman94 commented 6 months ago

Is there any way I can configure the log levels? I don't want my application insights to be flooded with trace messages.

image

mookid8000 commented 6 months ago

When you use Rebus.Microsoft.Extensions.Logging, it just makes Rebus pipe its logs to Microsoft.Extensions.Logging, so you'll need to find out how to configure (and possibly filter) logs with Microsoft.Extensions.Logging.

I almost always use Serilog, so unfortunately I cannot help you 😉