-
Notifications
You must be signed in to change notification settings - Fork 40
/
NLog.config
32 lines (29 loc) · 1.43 KB
/
NLog.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?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"
autoReload="true"
throwExceptions="false"
throwConfigExceptions="true"
globalThreshold="Trace"
internalLogLevel="Off" internalLogFile="">
<!-- Keeping `globalThreshold` at `Trace` because no log events below `globalThreshold` will be logged, regardless of any rules. -->
<variable name="enableMasking" value="true"/>
<targets>
<target name="file"
xsi:type="File"
layout="[${longdate:universalTime=true}] [${level:uppercase=true}] [${logger:shortName=true}] : ${message}"
fileName="${basedir}..\..\..\logs\application.log"
keepFileOpen="false"
archiveAboveSize="5242880"
archiveNumbering="Date"
archiveDateFormat="yyyymmddhhmmss"/>
<target name="logConsole" xsi:type="Console"
layout="[${longdate:universalTime=true}] [${level:uppercase=true}] [${logger:shortName=true}] : ${message}" />
</targets>
<rules>
<!--<logger name="Cybersource_rest_samples_dotnet.Samples.*" minlevel="Trace" writeTo="file" />
<logger name="Cybersource_rest_samples_dotnet.Samples.*" minlevel="Trace" writeTo="logconsole" />-->
<!--<logger name="*" minlevel="Trace" writeTo="file" />
<logger name="*" minlevel="Trace" writeTo="logconsole" />-->
</rules>
</nlog>