X.Serilog.Sinks.Telegram
X.Serilog.Sinks.Telegram copied to clipboard
User-defined Event Highlights for Special Notifications
Is your feature request related to a problem?
Yes, it takes time to quickly identify and react to critical issues within a flood of log messages. Users need a way to notice essential log events that require urgent attention immediately. I'm always frustrated when critical logs get buried under less important ones, delaying response times.
Describe the solution you'd like
I want a feature that allows users to define specific log events or keywords as "highlights." When a log matches these definitions, it should trigger special notifications distinct from regular log messages. This could involve different formatting, colors, or the inclusion of emojis to denote urgency. The system should allow for configurable alert levels (e.g., warning, critical) with corresponding notification styles to identify an event's severity at a glance quickly.
Describe alternatives you've considered
Another alternative is relying on external monitoring services to filter and alert specific log events, which adds dependencies and potentially increases the notification delay.
Additional context
This enhancement aims to make the Telegram logger a tool for passive monitoring and an active participant in the application's incident management process. By allowing users to customize what constitutes an essential event, the logger becomes much more versatile and valuable across different use cases and scenarios. Integrating this feature with existing functionalities like asynchronous sending and customizable formatting will ensure a cohesive user experience.