Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 995 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 995 Bytes

NuGet version (log4net.MicrosoftTeams) Build Status

log4net.MicrosoftTeams

A log4net appender that writes to Microsoft Teams.

Output

Example log4net.MicrosoftTeams output

Usage

<appender name="myMicrosoftTeamsAppender" type="log4net.MicrosoftTeams.MicrosoftTeamsAppender, log4net.MicrosoftTeams">
  <WebhookUrl value="" /> <!-- Your MicrosoftTeams channel to post to -->
  <titleLayout> 
    <conversionPattern value="Title - %p: %date [%c]" />
  </titleLayout>
  <layout type="log4net.Layout.PatternLayout">
    <conversionPattern value="%-5level %logger - %message" />
  </layout>
</appender>