EnVisageOnline/Main/Source/IntegrationTests/NLog.config

35 lines
1.4 KiB
XML

<?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>
<!-- add your targets here -->
<default-wrapper xsi:type="AsyncWrapper">
<wrapper-target xsi:type="RetryingWrapper"/>
</default-wrapper>
<target name="logfile" xsi:type="File" fileName="${basedir}/logs/${shortdate}.log" />
<target name="debugfile" xsi:type="File" fileName="${basedir}/logs/debug/${shortdate}.log" />
<target name="error" xsi:type ="Mail"
smtpServer="smtp.gmail.com"
smtpPort="587"
smtpAuthentication="Basic"
smtpUserName="envisage.tulasoft@gmail.com"
smtpPassword="EnV1$ag3"
enableSsl="true"
from="envisage.tulasoft@gmail.com"
to="envisage.tulasoft@gmail.com"/>
<!--
<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="Trace" writeTo="logfile" />
<!--<logger name="*" minlevel="Fatal" writeTo="error" />
<logger name="*" level="Trace" writeTo="debugfile" />-->
</rules>
</nlog>