42 lines
1.7 KiB
XML
42 lines
1.7 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 https://github.com/nlog/nlog/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="auditfile" xsi:type="File" fileName="${basedir}/logs/audit/${shortdate}.log" />
|
|
<target name="error" xsi:type ="Mail"
|
|
smtpServer="smtp.gmail.com"
|
|
smtpPort="587"
|
|
smtpAuthentication="Basic"
|
|
smtpUserName="envisage.tulasoft@gmail.com"
|
|
smtpPassword="EnV1$ag322"
|
|
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="Error" writeTo="logfile" />
|
|
<!--<logger name="*" minlevel="Fatal" writeTo="error" />-->
|
|
<logger name="*" level="Debug" writeTo="debugfile" />
|
|
<logger name="EnVisage.Code.AuditProxy" level="Info" writeTo="auditfile" />
|
|
<!--
|
|
<logger name="*" minlevel="Trace" writeTo="f" />
|
|
-->
|
|
</rules>
|
|
</nlog> |