Created
June 22, 2012 16:23
-
-
Save devinrader/2973823 to your computer and use it in GitHub Desktop.
Example NLog config file for custom SMS target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<!-- | |
See http://nlog-project.org/wiki/Configuration_file | |
for information on customizing logging rules and outputs. | |
--> | |
<extensions> | |
<add assembly="Twilio.Targets"/> | |
</extensions> | |
<targets> | |
<!-- add your targets here --> | |
<target name="sms1" xsi:type="Sms" | |
AccountSid="<<AccountSid>>" | |
AuthToken="<<AuthToken>>" | |
From="<<From>>" | |
To="+<<To>>" /> | |
<!-- | |
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log" | |
layout="${longdate} ${uppercase:${level}} ${message}" /> | |
--> | |
</targets> | |
<rules> | |
<!-- add your logging rules here --> | |
<logger name="*" minlevel="Warn" writeTo="sms1" /> | |
<!-- | |
<logger name="*" minlevel="Trace" writeTo="f" /> | |
--> | |
</rules> | |
</nlog> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment