Dec 31, 2012
3 mins read
<?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. –> <targets> <target xsi:type="Mail” name="MailAlarm” smtpServer="郵件主機位置” smtpPort="25” subject="${machineName}於${longdate}發生問題” from="寄信人Mail” to="收信人Mail” body="${longdate} ${uppercase:${level}} ${message}” /> </targets> <rules> <logger name=”*” minlevel="Error” writeTo="MailAlarm” /> </rules> </nlog>
Sharing is caring!