serilog-contrib / Serilog.Sinks.MicrosoftTeams.Alternative

Serilog.Sinks.MicrosoftTeams.Alternative is a library to save logging information from Serilog to Microsoft Teams.
MIT License
32 stars 11 forks source link

Messages not going out. #25

Closed clstr closed 2 years ago

clstr commented 2 years ago

Trying to get serilog to sink to Microsoft Teams, but nothing i'm doing is working. any ideas?

Writing to console still works fine. I know the webhook endpoint works as i tested it using curl.

https://gist.github.com/clstr/85367e0a2130ba20b105a646569a63e5

nelsonroliveira commented 2 years ago

Hum, I currently do not have access to a test teams room but I can see messages are being sent from the code you provided.

How was the teams room webhook setup?

image

clstr commented 2 years ago

@nelsonroliveira There isn't much in the way of setting up a channel with a webhook, it is literally a 1 click process and it gives you the webhook address automatically.

https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook

nelsonroliveira commented 2 years ago

Could you try with this plugin instead?

image

SeppPenner commented 2 years ago

Sorry for the long delay. I have also no idea here. Whenever I tested it, it worked with the web hook...

SeppPenner commented 2 years ago

@clstr Some news here? Is this fixed already?

clstr commented 2 years ago

@SeppPenner Sorry, I fell ill and never had the chance to take a look again. Maybe, I should close and try it again later?

SeppPenner commented 2 years ago

@SeppPenner Sorry, I fell ill and never had the chance to take a look again. Maybe, I should close and try it again later?

Oh, no problem. Get well soon :) And if the issue occurs again, just create another issue or re-open this issue.