Skip to content

NLog target to send logging ta a Microsoft Teams channel (O365 Webhook Connector)

Notifications You must be signed in to change notification settings

mswenson/NLog.MSFTTeams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NLog.MSFTTeams

NLog target to send logging ta a Microsoft Teams channel (O365 Webhook Connector)

v. 0.1.4 v. 0.1.3 v. 0.1.2

Example Nlog.Config

  <?xml version="1.0" encoding="utf-8" ?>
  <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <extensions>
  <add assembly="NLog.MSFTTeams" />
  </extensions>  <targets>
  <target xsi:type="MSFTTeamsTarget" name="msftTeams" layout="${longdate} ${uppercase:${level}} ${message}" CardTitle="User: "  TextMarkdown="##### InstallationId: " ThemeColorError="FF0000" ThemeColorDefault="" WebHookUrl="[webhook URL as received from Teams       Webhook Connector]"/>
  </targets>
  <rules>
  <logger name="*" minlevel="Info" writeTo="msftTeams" />
  </rules>
  </nlog>

About

NLog target to send logging ta a Microsoft Teams channel (O365 Webhook Connector)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published