Closed cgountanis closed 6 years ago
Yes, we already have that in the SlackSink. It just needs to be exposed via LoggerConfigurationSlackExtensions
. I'll try to release a new version with that.
Try and use this with the latest version:
var log = new LoggerConfiguration().WriteTo.Slack("https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", username: "Test User", iconEmoji: Serilog.Sinks.Slack.Core.Sinks.Slack.Client.Emoji.MonkeyFace).CreateLogger();
Seems to be working, very nice option set.
Is this possible? Custom Bot Name per Application (One WebHook)
or
Can I use the render to dynamically add project name to the top of the message?
Core 2
<PackageReference Include="Serilog.Sinks.Slack.Core" Version="0.1.3-beta" />