serilog-contrib / serilog-sinks-teams Goto Github PK
View Code? Open in Web Editor NEWA Serilog event sink that writes to Microsoft Teams
License: MIT License
A Serilog event sink that writes to Microsoft Teams
License: MIT License
The Serilog.Sinks.MicrosoftTeams
NuGet package doesn't have an icon yet.
I suggest using the standard icon for sinks:
More details: https://github.com/serilog-contrib/brand
Hi, I been using this sink in a console app and have notice that if the application quits before the "Serilog.Sinks.PeriodicBatching" OnTick event has been run then the logs in the queue are lost.
After looking at the "MicrosoftTeamsSink.cs" I believe this maybe due to the order in which things are disposed, in the Dispose() method.
Currently the HttpClient is disposed first then the Base Dispose method is called where it tries to flush the buffer however I would assume this fails because the HttpClient is no longer valid, thus dropping the buffer.
I have tried to SelfLog to test this theory but noting is outputted to the temp file I created, which also leads me to believe that it may not even get to the Dispose method as well.
Any help would be great as really like this sink :)
Is there any chance of using Netstandard 2.0 so we can use it with .Net Full Framework 4.7.2?
Now, when we use periodic batching sink (#2), it should be quite straightforward to group the same log events into a single Teams message and instead add additional properties to the Teams message like Count and, maybe, something like FirstOccurredDate/OccurredLastDate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.