Possibility to add Custom Messages #37
Replies: 5 comments 2 replies
-
Hi 👋🏼 Maybe I don't understand your problem correctly, but I think you are looking for the solution to your problem in the wrong place. My project and the serilog-sinks-slack project are both so-called
The difference between my project and the serilog-sinks-slack is, in my opinion, that you have more options for formatting the messages in Slack because you have more access to the underlaying Slack Webhooks. I hope that helps for now in solving the problem! 😉 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm still not sure if I've fully understood your problem, but maybe I can help you with the following. In general you can append custom properties like the request body to a log event without it appearing in the log message. To do this, instead of using Furthermore, it is theoretically possible to override the functions of my Slack-Sink implementation, which are responsible for "rendering" the message and attachments in Slack. |
Beta Was this translation helpful? Give feedback.
-
Great, I will try to look into it and thanks for bearing up with me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In a Web App project, I use a Slack logger using serilog.
There are many APIs in my project, I want to log the Body of a POST API that fails so that I have the data to recreate the same situation. If it is possible to have this in jjm.one.Serilog.Sinks.SlackWebHook that I will gladly make a switch.
TIA.
Beta Was this translation helpful? Give feedback.
All reactions