This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathNLog.config
64 lines (62 loc) · 3.48 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?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"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<targets>
<target name="MainLog" xsi:type="AsyncWrapper" queueLimit="10000" overflowAction="Discard" optimizeBufferReuse="true">
<target name="MainLog1"
xsi:type="File"
fileName="logs/Snowflake.GrantReport.Main.${shortdate}.log"
keepFileOpen="true"
openFileCacheTimeout="30"
autoFlush="false"
archiveAboveSize="52428800"
archiveFileName="logs/Snowflake.GrantReport.Main.${shortdate}.{#####}.log"
layout="${longdate}|${level}|${processname}|${processid}|${threadid}|${logger}|${message}"/>
</target>
<target name="SnowSQLDriverLog" xsi:type="AsyncWrapper" queueLimit="10000" overflowAction="Discard" optimizeBufferReuse="true">
<target name="SnowSQLDriverLog1"
xsi:type="File"
fileName="logs/Snowflake.GrantReport.SnowSQLDriver.${shortdate}.log"
keepFileOpen="true"
openFileCacheTimeout="30"
autoFlush="false"
archiveAboveSize="52428800"
archiveFileName="logs/Snowflake.GrantReport.SnowSQLDriver.${shortdate}.{#####}.log"
layout="${longdate}|${level}|${processname}|${processid}|${threadid}|${logger}|${message}"/>
</target>
<target name="GraphVizDriverLog" xsi:type="AsyncWrapper" queueLimit="10000" overflowAction="Discard" optimizeBufferReuse="true">
<target name="GraphVizDriverLog1"
xsi:type="File"
fileName="logs/Snowflake.GrantReport.GraphVizDriver.${shortdate}.log"
keepFileOpen="true"
openFileCacheTimeout="30"
autoFlush="false"
archiveAboveSize="52428800"
archiveFileName="logs/Snowflake.GrantReport.GraphVizDriver.${shortdate}.{#####}.log"
layout="${longdate}|${level}|${processname}|${processid}|${threadid}|${logger}|${message}"/>
</target>
<target name="ConsoleLog" xsi:type="AsyncWrapper" queueLimit="10000" overflowAction="Discard" optimizeBufferReuse="true">
<target name="ConsoleLog1"
xsi:type="File"
fileName="logs/Snowflake.GrantReport.Console.${shortdate}.log"
keepFileOpen="true"
openFileCacheTimeout="30"
autoFlush="false"
archiveAboveSize="52428800"
archiveFileName="logs/Snowflake.GrantReport.Console.${shortdate}.{#####}.log"
layout="${longdate}|${level}|${processname}|${processid}|${threadid}|${logger}|${message}"/>
</target>
<target name="console" xsi:type="ColoredConsole" layout="${message}" />
</targets>
<rules>
<logger name="Snowflake.GrantReport.SnowSQLDriver" minlevel="Trace" writeTo="SnowSQLDriverLog" final="true" />
<logger name="Snowflake.GrantReport.GraphVizDriver" minlevel="Trace" writeTo="GraphVizDriverLog" final="true" />
<logger name="Snowflake.GrantReport.Console" minlevel="Trace" writeTo="ConsoleLog"/>
<logger name="Snowflake.GrantReport.Console" minlevel="Trace" writeTo="console" final="true" />
<logger name="*" minlevel="Trace" writeTo="MainLog" />
</rules>
</nlog>